Skip to content

Commit

Permalink
ci: 配置自动发布
Browse files Browse the repository at this point in the history
  • Loading branch information
suiyun39 committed Feb 15, 2023
1 parent 6e405fa commit 34ff1e3
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Publish

on:
push:
tags:
- 'v*'

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]

- uses: pnpm/[email protected]
- uses: actions/[email protected]
with:
node-version: 18
cache: pnpm

- run: pnpm install
- run: pnpm run build
- run: pnpm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 34ff1e3

Please sign in to comment.