Skip to content

Commit

Permalink
Issue #224544 feat: Test workflow execution
Browse files Browse the repository at this point in the history
  • Loading branch information
rajnishdargan committed Aug 8, 2024
1 parent 52fb2f6 commit 61245ea
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/publish-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,8 @@ jobs:
node-version: '18'
registry-url: 'https://registry.npmjs.org'

- name: Authenticate to npm
run: |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: 🔑 Authenticate to npm
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc

- name: 📦 Install Dependencies
run: npm install
Expand All @@ -61,12 +58,10 @@ jobs:
run: |
cd dist/quml-library
if [[ "$(jq -r .version package.json)" == *"beta"* ]]; then
npm publish --registry https://registry.npmjs.org --tag=beta --provenance --access public
npm publish --tag=beta --access public
else
npm publish --registry https://registry.npmjs.org --provenance --access public
npm publish --access public
fi
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: 📜 Log Version Exists
if: env.status == '200'
Expand Down

0 comments on commit 61245ea

Please sign in to comment.