Skip to content
This repository was archived by the owner on Mar 7, 2025. It is now read-only.

Commit 5ec52b3

Browse files
authored
Add publish ci (#10)
1 parent b360185 commit 5ec52b3

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/publish.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Publish
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
release:
8+
runs-on: ubuntu-latest
9+
name: Release
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v4
13+
with:
14+
fetch-depth: 0
15+
16+
- name: Install pnpm
17+
uses: pnpm/action-setup@v2
18+
19+
- name: Set node version to 20
20+
uses: actions/setup-node@v3
21+
with:
22+
node-version: 20
23+
cache: 'pnpm'
24+
25+
- name: Prepare
26+
run: pnpm install --frozen-lockfile
27+
28+
- name: Publish
29+
run: pnpm --recursive publish --access public
30+
env:
31+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)