Skip to content

Commit

Permalink
TECH-1636: Add a NPMJS authentication step (#263)
Browse files Browse the repository at this point in the history
  • Loading branch information
rknj authored Jul 4, 2024
1 parent f8dbd5c commit d2cd9d9
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/on-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,16 @@ jobs:
shell: bash
run: |
yarn install
- name: Set env vars
shell: bash
run: |
echo "GITHUB_TOKEN=${{ secrets.GH_API_TOKEN }}" >> $GITHUB_ENV
echo "NPM_TOKEN=${{ secrets.NPMJS_PUBLISH_TOKEN }}" >> $GITHUB_ENV
- name: Authenticate with registry
shell: bash
run: |
echo "//registry.npmjs.org/:_authToken=${{ env.NPM_TOKEN }}" > ~/source/.npmrc
- name: Execute yarn publish
env:
GITHUB_TOKEN: ${{ secrets.GH_API_TOKEN }}
NPM_TOKEN: ${{ secrets.NPMJS_PUBLISH_TOKEN }}
shell: bash
run: |
yarn publish

0 comments on commit d2cd9d9

Please sign in to comment.