Skip to content

Commit 7c3d100

Browse files
committed
chore: npm trusted publishing via OIDC
1 parent d10b1af commit 7c3d100

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
runs-on: ubuntu-latest
1818
permissions:
1919
contents: write
20+
id-token: write
2021
steps:
2122
- uses: actions/checkout@v5
2223
with:
@@ -60,6 +61,6 @@ jobs:
6061
6162
- name: Publish to npm
6263
if: steps.diff.outputs.changed == 'true' || github.event_name == 'workflow_dispatch'
63-
run: npm publish --access public
64-
env:
65-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
64+
run: |
65+
npm install -g npm@latest
66+
npm publish --access public --provenance

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"license": "MIT",
4848
"repository": {
4949
"type": "git",
50-
"url": "https://github.com/roxyapi/sdk-typescript.git"
50+
"url": "git+https://github.com/roxyapi/sdk-typescript.git"
5151
},
5252
"homepage": "https://roxyapi.com/docs/sdk",
5353
"bugs": {

0 commit comments

Comments
 (0)