Skip to content

Commit eb0b527

Browse files
authored
Add publish workflow (#260)
1 parent a0b3efc commit eb0b527

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

.github/workflows/publish.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Publish
2+
on:
3+
push:
4+
tags: ["v*"]
5+
6+
jobs:
7+
publish:
8+
name: Publish
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v4
13+
- uses: pnpm/action-setup@v4
14+
- name: Use Node.js
15+
uses: actions/setup-node@v4
16+
with:
17+
node-version: "22.x"
18+
cache: pnpm
19+
- run: pnpm install
20+
- run: pnpm publish --recursive --access public
21+
env:
22+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

HACKING.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,6 @@ pnpm run -w build
3131
## Publishing
3232

3333
```shell
34-
pnpm publish -r
34+
# NOTE: This should happen automatically when creating a GitHub Release
35+
pnpm publish --recursive --access public
3536
```

0 commit comments

Comments
 (0)