mirror of
https://github.com/kennethnym/jrx.git
synced 2026-03-20 03:41:18 +00:00
Use trusted publishing (OIDC) instead of npm token
Co-authored-by: Ona <no-reply@ona.com>
This commit is contained in:
7
.github/workflows/publish.yml
vendored
7
.github/workflows/publish.yml
vendored
@@ -7,6 +7,9 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
publish:
|
publish:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
id-token: write
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
@@ -18,6 +21,6 @@ jobs:
|
|||||||
|
|
||||||
- run: bun test
|
- run: bun test
|
||||||
|
|
||||||
- run: bun publish --access public
|
- run: bun publish --access public --provenance
|
||||||
env:
|
env:
|
||||||
NPM_CONFIG_TOKEN: ${{ secrets.NPM_TOKEN }}
|
NPM_CONFIG_REGISTRY: https://registry.npmjs.org
|
||||||
|
|||||||
Reference in New Issue
Block a user