Skip to content

chore: 补充 v0.7.0 更新内容 #26

chore: 补充 v0.7.0 更新内容

chore: 补充 v0.7.0 更新内容 #26

Workflow file for this run

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