Skip to content

Commit

Permalink
ci: 预览版ci发布
Browse files Browse the repository at this point in the history
  • Loading branch information
zkz098 committed Feb 1, 2024
1 parent 57c48e3 commit abe4b88
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ on:

jobs:
publish:
if: "!github.event.release.prerelease"
runs-on: ubuntu-latest

steps:
Expand All @@ -25,5 +24,11 @@ jobs:
pnpm run build
- run: npm publish
if: "!github.event.release.prerelease"
env:
NODE_AUTH_TOKEN: ${{ secrets.npm_token }}

- run: npm publish --tag dev
if: "github.event.release.prerelease"
env:
NODE_AUTH_TOKEN: ${{ secrets.npm_token }}

0 comments on commit abe4b88

Please sign in to comment.