Skip to content

Commit

Permalink
chore: add npm authentication to manual release
Browse files Browse the repository at this point in the history
  • Loading branch information
leangseu-edx committed May 16, 2024
1 parent 38f4800 commit a4b24b8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/manual-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ jobs:
- name: Create Build
run: npm run build

# NPM expects to be authenticated for publishing. This step will fail CI if NPM is not authenticated
- name: Check NPM authentication
run: |
echo "//registry.npmjs.org/:_authToken=${{ secrets.SEMANTIC_RELEASE_NPM_TOKEN }}" >> .npmrc
npm whoami
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_GITHUB_TOKEN }}
Expand Down

0 comments on commit a4b24b8

Please sign in to comment.