Skip to content

Commit

Permalink
调整 Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Linho1219 committed Nov 12, 2024
1 parent ac2a23f commit d2ac886
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ name: NPM Package Release
on:
release:
types: [created]
push:
branches:
- main

jobs:
build:
Expand All @@ -17,7 +14,7 @@ jobs:
node-version: 16
registry-url: https://registry.npmjs.org/
- run: npm install
- run: npm run release
- run: tsc
- run: npm publish
env:
# 通过NPM_TOKEN,Github Action才可以直接发布
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 comments on commit d2ac886

Please sign in to comment.