Skip to content

Commit

Permalink
Add publish workflow (#260)
Browse files Browse the repository at this point in the history
  • Loading branch information
spenserblack authored Nov 14, 2024
1 parent a0b3efc commit eb0b527
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
22 changes: 22 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Publish
on:
push:
tags: ["v*"]

jobs:
publish:
name: Publish
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: "22.x"
cache: pnpm
- run: pnpm install
- run: pnpm publish --recursive --access public
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
3 changes: 2 additions & 1 deletion HACKING.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,6 @@ pnpm run -w build
## Publishing

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

0 comments on commit eb0b527

Please sign in to comment.