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 b754f37 commit 62b25cc
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/publish-package.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: 🚀 Publish NPM Package

on:
push:
branches:
- '**'
pull_request:
branches:
- '**'
Expand Down Expand Up @@ -34,7 +31,7 @@ jobs:
- name: Create .npmrc
run: |
echo "@tekdi:registry=https://registry.npmjs.org/" > ~/.npmrc
echo "//registry.npmjs.org/:_authToken=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" >> ~/.npmrc
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> ~/.npmrc
- name: Display .npmrc contents
run: cat ~/.npmrc
Expand All @@ -55,4 +52,4 @@ jobs:
ls -la # List the contents to ensure the package is present
npm publish --tag=beta --access public
env:
NODE_AUTH_TOKEN: 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
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 62b25cc

Please sign in to comment.