Skip to content

Commit

Permalink
Issue #224544 feat: Enable GitHub Actions to publish NPM package
Browse files Browse the repository at this point in the history
  • Loading branch information
rajnishdargan committed Aug 9, 2024
1 parent 15d2ab4 commit 0a4fd6e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/publish-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ jobs:
node-version: '18'
registry-url: 'https://registry.npmjs.org'

- name: Authenticate with npm
run: echo "//registry.npmjs.org/:_authToken=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" > ~/.npmrc


- name: 📦 Install Dependencies
run: npm ci

Expand Down Expand Up @@ -66,8 +70,8 @@ jobs:
else
npm publish tekdi-sunbird-quml-player-* --access public
fi
env:
NODE_AUTH_TOKEN: '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'
# env:
# NODE_AUTH_TOKEN: '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'

- name: 📜 Log Version Exists
if: env.status == '200'
Expand Down

0 comments on commit 0a4fd6e

Please sign in to comment.