Skip to content

Commit

Permalink
Merge pull request #16 from polytrade-finance/features/test-action
Browse files Browse the repository at this point in the history
🔧 Removed Scope configuration
  • Loading branch information
mohamadhammoud authored Apr 11, 2023
2 parents c5aec0d + 750e82a commit ad81857
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/release-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,11 @@ jobs:
with:
node-version: 16
registry-url: https://npm.pkg.github.com/
- name: Login to NPM registry
run: npm login --registry=https://registry.npmjs.org/ --scope=@polytrade.finance --always-auth --auth-token=${{ secrets.NPM_WORKFLOW_TOKEN }}
- run: npm ci
- name: Authenticate with NPM
run: echo "//registry.npmjs.org/:_authToken=\${{ secrets.NPM_WORKFLOW_TOKEN }}" >> ~/.npmrc
- name: Publish to NPM
run: npm publish
- name: Authenticate and publish with NPM
run: |
echo "//registry.npmjs.org/:_authToken=\${NPM_WORKFLOW_TOKEN}" >> .npmrc
echo "email=mohamad@polytrade.finance" >> .npmrc
npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
NPM_WORKFLOW_TOKEN: ${{secrets.NPM_WORKFLOW_TOKEN}}

0 comments on commit ad81857

Please sign in to comment.