Skip to content

Commit

Permalink
Update npmpublish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kurkle authored May 22, 2022
1 parent c5f2e00 commit 4036490
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/npmpublish.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Node.js Package
name: Release to NPM

on:
release:
types: [created, edited]
types: [published]

jobs:
publish-npm:
Expand All @@ -11,15 +11,15 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
node-version: 14
registry-url: https://registry.npmjs.org/
- name: Build
run: |
npm ci
npm run lint
npm run build
- name: Test
run: node test/index.js
run: npm test
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 comments on commit 4036490

Please sign in to comment.