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 1c97b04 commit 26fd08d
Showing 1 changed file with 6 additions and 25 deletions.
31 changes: 6 additions & 25 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,35 +5,16 @@ on:
branches:
- main

permissions:
contents: write
pull-requests: write


jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v3
id: release
with:
release-type: node
package-name: release-please-action
# Checkout
- uses: actions/checkout@v3
if: ${{ steps.release.outputs.release_created }}
# Setup node
- uses: actions/setup-node@v3
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'
if: ${{ steps.release.outputs.release_created }}
# Setup pnpm
- uses: pnpm/action-setup@v2
if: ${{ steps.release.outputs.release_created }}
# Install dependencies
- run: pnpm install
if: ${{ steps.release.outputs.release_created }}
# Build output
- run: pnpm build
if: ${{ steps.release.outputs.release_created }}
# Publish to npm
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
if: ${{ steps.release.outputs.release_created }}
package-name: mtk-tool

0 comments on commit 26fd08d

Please sign in to comment.