Skip to content

Commit

Permalink
ci(yml): 更新配置
Browse files Browse the repository at this point in the history
  • Loading branch information
aliothor committed Oct 16, 2023
1 parent d32ce13 commit 8e61413
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 24 deletions.
23 changes: 0 additions & 23 deletions .github/workflows/npm-publish.yaml

This file was deleted.

18 changes: 17 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,20 @@ jobs:
- uses: google-github-actions/release-please-action@v3
with:
release-type: node
package-name: mtk-tool
package-name: mtk-tool
# The logic below handles the npm publication:
- uses: actions/checkout@v2
# these if statements ensure that a publication only occurs when
# a new release is created:
if: ${{ steps.release.outputs.release_created }}
- uses: actions/setup-node@v1
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'
if: ${{ steps.release.outputs.release_created }}
- run: npm ci
if: ${{ steps.release.outputs.release_created }}
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
if: ${{ steps.release.outputs.release_created }}

0 comments on commit 8e61413

Please sign in to comment.