Skip to content
This repository has been archived by the owner on Feb 7, 2023. It is now read-only.

Commit

Permalink
Merge pull request #495 from jt-nti/npm-push
Browse files Browse the repository at this point in the history
Publish with NPM token
  • Loading branch information
mbwhite committed Feb 4, 2022
2 parents 25a7e40 + befc7eb commit 6d80443
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,16 +85,16 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 12
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: npm install --no-optional
- name: Login to npm
env:
NPM_USER: ${{ secrets.NPM_USER }}
NPM_PASS: ${{ secrets.NPM_PASS }}
NPM_EMAIL: ${{ secrets.NPM_EMAIL }}
run: npx npm-cli-login -u ${NPM_USER} -p ${NPM_PASS} -e ${NPM_EMAIL}
- name: Publish to npm
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Clean repository
run: |
git clean -df
Expand Down

0 comments on commit 6d80443

Please sign in to comment.