diff options
| author | amankumarsingh77 <amankumarsingh7702@gmail.com> | 2026-06-21 00:51:33 +0530 |
|---|---|---|
| committer | amankumarsingh77 <amankumarsingh7702@gmail.com> | 2026-06-21 00:51:49 +0530 |
| commit | 0825b68343a5d19404718c4a057c894fda7c623d (patch) | |
| tree | 22e191468d8d80ddbf9a1e6dfbabdf2a8065f676 /.github | |
| parent | da5d31af999b728c31ab0169373531cab4543f0c (diff) | |
ci: add trusted-publishing workflow for npm
Diffstat (limited to '.github')
| -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 |
