Add GitHub Actions workflow for publishing to NPM on release

This commit is contained in:
2025-10-20 14:03:35 -04:00
parent 9ca8943e78
commit 9fcad5438b
2 changed files with 22 additions and 39 deletions
+22
View File
@@ -0,0 +1,22 @@
name: Publish to NPM
on:
release:
types: [published]
permissions:
id-token: write
contents: read
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v6
with:
node-version: "20"
registry-url: "https://registry.npmjs.org"
- run: npm ci
- run: npm run build --if-present
- run: npm publish