Skip to content

Commit

Permalink
fix: Updated npm package release workflow to have required NPM_TOKEN (
Browse files Browse the repository at this point in the history
  • Loading branch information
chavda-bhavik authored Jul 8, 2024
2 parents 9ab85a7 + a9c4db3 commit 3b9beb1
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/publish-prod-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Publish Packages to NPM Registry

on:
workflow_call:
secrets:
NPM_TOKEN:
required: true

jobs:
publish_prod_react:
Expand Down Expand Up @@ -39,13 +42,17 @@ jobs:
run_install: true

- name: Publish @impler/shared package on NPM 📦
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
working-directory: libs/shared
run: |
npm config set --workspaces=false --include-workspace-root //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}
npm config set --workspaces=false --include-workspace-root //registry.npmjs.org/:_authToken=$NPM_TOKEN
npm publish --access public
- name: Publish @impler/react package on NPM 📦
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
working-directory: packages/react
run: |
npm config set --workspaces=false --include-workspace-root //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}
npm config set --workspaces=false --include-workspace-root //registry.npmjs.org/:_authToken=$NPM_TOKEN
npm publish --access public

0 comments on commit 3b9beb1

Please sign in to comment.