Skip to content

Commit 8968564

Browse files
authored
ci: configure npm auth and pass GITHUB_TOKEN for unstable publish (#14772)
1 parent 4884b90 commit 8968564

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/release-unstable.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,13 @@ jobs:
2929
- name: Setup node and build the repository
3030
uses: ./amplify-js/.github/actions/node-and-build
3131

32+
- name: Configure npm authentication
33+
run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
34+
env:
35+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
36+
3237
- name: Publish to @unstable
3338
working-directory: ./amplify-js
3439
run: yarn publish:unstable
3540
env:
3641
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)