Skip to content

Commit db7a4c5

Browse files
committed
update workflows to use npm tokens
1 parent 57ddf61 commit db7a4c5

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/publish-snapshot.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
run: pnpm build
3737

3838
- name: Write .npmrc
39-
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_AUTOMATION_FROM_CHANCE }}" > .npmrc
39+
run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc
4040

4141
- name: Update snapshot version
4242
run: pnpm run bump:next
@@ -51,4 +51,4 @@ jobs:
5151
- name: Publish snapshot
5252
run: pnpm run release:next
5353
env:
54-
YARN_NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTOMATION_FROM_CHANCE }}
54+
NPM_TOKEN: ${{ secrets.NPM_AUTOMATION_FROM_CHANCE }}

.github/workflows/publish-stable.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ jobs:
3434
- name: Build packages
3535
run: pnpm build
3636

37+
- name: Write .npmrc
38+
run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc
39+
3740
- name: Create Release Pull Request or Publish to npm
3841
id: changesets
3942
uses: changesets/action@v1

0 commit comments

Comments
 (0)