diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..fb7bb54 --- /dev/null +++ b/.github/workflows/publish.yml @@ -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 }} diff --git a/HACKING.md b/HACKING.md index f05d275..d4e0199 100644 --- a/HACKING.md +++ b/HACKING.md @@ -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 ```