Skip to content

Commit b4c6e9f

Browse files
committed
ci: add publish action
1 parent cbf2669 commit b4c6e9f

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/publish.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: publish
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
workflow_dispatch:
8+
9+
concurrency: ${{ github.workflow }}-${{ github.ref }}
10+
11+
jobs:
12+
publish:
13+
runs-on: ubuntu-latest
14+
permissions:
15+
contents: write
16+
id-token: write
17+
steps:
18+
- uses: actions/checkout@v5
19+
- run: corepack enable
20+
- uses: actions/setup-node@v4
21+
with: { node-version: "latest", cache: "pnpm" }
22+
- run: pnpm install
23+
- run: pnpm lint
24+
- run: pnpm build
25+
- run: pnpm publish --no-git-checks --access public
26+
env:
27+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
28+
NPM_CONFIG_PROVENANCE: true

0 commit comments

Comments
 (0)