diff options
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/publish.yml | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..8ad665c --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,28 @@ +name: Publish to npm + +on: + push: + tags: + - 'v*' + +permissions: + id-token: write # required for OIDC trusted publishing + contents: read + +jobs: + publish: + name: Publish + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-node@v4 + with: + node-version: 22 + registry-url: https://registry.npmjs.org + cache: npm + + - run: npm ci + + # prepublishOnly already runs tsc --noEmit + - run: npm publish |
