Skip to content

Commit

Permalink
fix publish ci: use publish tag.
Browse files Browse the repository at this point in the history
  • Loading branch information
pupilTong committed Feb 9, 2022
1 parent cfb11b2 commit 47043e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name: Node.js Package

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

jobs:
build:
Expand All @@ -28,6 +28,6 @@ jobs:
node-version: 16
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm publish
- run: npm publish --new-version ${{github.event.release.tag_name}}
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 comments on commit 47043e2

Please sign in to comment.