Skip to content

Commit

Permalink
Update setup-node.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
retraigo authored Jan 13, 2022
1 parent 7e34397 commit 425f6e4
Showing 1 changed file with 17 additions and 12 deletions.
29 changes: 17 additions & 12 deletions .github/workflows/setup-node.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
name: Setup Node.js environment
- uses: actions/[email protected]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14.x'
registry-url: 'https://registry.npmjs.org'
- run: npm install
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
name: Publish Package to npmjs
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14.x'
registry-url: 'https://registry.npmjs.org'
- run: npm install
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 425f6e4

Please sign in to comment.