Skip to content

Commit 01369f9

Browse files
committed
chore: add NPM_AUTH_TOKEN
1 parent 75f1f24 commit 01369f9

File tree

4 files changed

+5
-115
lines changed

4 files changed

+5
-115
lines changed

.github/workflows/nightly.yml

Lines changed: 0 additions & 81 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
permissions:
1010
contents: read
1111
pull-requests: write
12+
id-token: write
1213

1314
env:
1415
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
@@ -37,9 +38,6 @@ jobs:
3738
cache: yarn
3839
node-version: '20.x'
3940

40-
- name: Setup npmrc
41-
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_PUBLISH_TOKEN }}" > .npmrc
42-
4341
- name: Install
4442
if: ${{ steps.release.outputs.releases_created }}
4543
run: yarn install --immutable
@@ -48,6 +46,8 @@ jobs:
4846
if: ${{ steps.release.outputs.releases_created }}
4947
run: yarn build:ci
5048

49+
- run: yarn config set npmAuthToken ${{ secrets.NPM_PUBLISH_TOKEN }}
50+
5151
# Release Please has already incremented versions and published tags, so we just
5252
# need to publish all unpublished versions to NPM here
5353
- run: yarn workspaces foreach --all --parallel --no-private npm publish --access=public

.yarnrc.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ enableGlobalCache: false
44

55
nodeLinker: node-modules
66

7-
yarnPath: .yarn/releases/yarn-4.5.3.cjs
8-
97
npmPublishRegistry: 'https://registry.npmjs.org'
8+
9+
yarnPath: .yarn/releases/yarn-4.5.3.cjs

scripts/version-and-publish.sh

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)