Skip to content

v0.7.0

v0.7.0 #25

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: 8
- run: |
pnpm install
pnpm build
- run: pnpm publish --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }}