diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml new file mode 100644 index 0000000..ccc400d --- /dev/null +++ b/.github/workflows/publish.yaml @@ -0,0 +1,27 @@ +name: Publish +on: + push: + tags: + - '*.*.*' + +jobs: + publish: + runs-on: ubuntu-latest + environment: publish + permissions: + contents: read + id-token: write + + steps: + - name: Checkout + uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 #v6.0.1 + + - name: Setup Node.js + uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f #v6.1.0 + with: + node-version: 24 + registry-url: https://registry.npmjs.org + + - name: publish + run: | + npm publish --access public