v0.7.1 #27
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 发布更新 | |
on: | |
push: | |
tags: | |
- v* | |
workflow_dispatch: | |
jobs: | |
package: | |
name: 发布 npm 包 | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
id-token: write | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- run: | | |
git checkout -b stable origin/stable | |
git merge --ff-only origin/main | |
git push origin stable | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 9 | |
- run: pnpm install | |
- run: pnpm build | |
- run: npm config set '//registry.npmjs.org/:_authToken' "${NODE_AUTH_TOKEN}" | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }} | |
- run: pnpm publish --no-git-checks |