Skip to content

publish

publish #4

Workflow file for this run

name: publish
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# 安装 pnpm
- uses: pnpm/action-setup@v2
with:
version: 8
# 安装 Node
- uses: actions/setup-node@v3
with:
node-version: 16
cache: 'pnpm'
- run: pnpm i
- run: pnpm build
- run: pnpm publish --registry=https://registry.npmjs.org/
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}