Skip to content

Commit d50c7b8

Browse files
committed
ci: github action as trusted publisher removes token
1 parent e4f6233 commit d50c7b8

2 files changed

Lines changed: 10 additions & 11 deletions

File tree

.github/workflows/release.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
name: Release
22

3+
permissions:
4+
id-token: write
5+
contents: read
6+
37
on:
48
workflow_dispatch: ~
59
push:
@@ -22,8 +26,9 @@ jobs:
2226
- name: Setup Node
2327
uses: actions/setup-node@v4
2428
with:
25-
node-version: 22
29+
node-version: "current"
2630
cache: "pnpm"
31+
registry-url: "https://registry.npmjs.org"
2732

2833
- name: Install dependencies
2934
run: pnpm install --frozen-lockfile
@@ -41,6 +46,5 @@ jobs:
4146
run: pnpm build
4247

4348
- name: Publish to npm
44-
run: pnpm publish --no-git-checks
45-
env:
46-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
49+
run: |
50+
npm publish

package.json

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@api-platform/api-doc-parser",
3-
"version": "0.16.9",
3+
"version": "0.16.10",
44
"description": "Transform an API documentation (Hydra, OpenAPI, GraphQL) in an intermediate representation that can be used for various tasks such as creating smart API clients, scaffolding code or building administration interfaces.",
55
"keywords": [
66
"api",
@@ -76,19 +76,14 @@
7676
"typescript": "^5.8.3",
7777
"vitest": "^3.2.4"
7878
},
79-
"packageManager": "pnpm@10.13.1+sha512.37ebf1a5c7a30d5fabe0c5df44ee8da4c965ca0c5af3dbab28c3a1681b70a256218d05c81c9c0dcf767ef6b8551eb5b960042b9ed4300c59242336377e01cfad",
79+
"packageManager": "pnpm@10.29.1",
8080
"engines": {
8181
"node": ">= 20"
8282
},
8383
"publishConfig": {
8484
"access": "public"
8585
},
8686
"devEngines": {
87-
"packageManager": {
88-
"name": "pnpm",
89-
"version": ">= 10.0.0",
90-
"onFail": "download"
91-
},
9287
"runtime": {
9388
"name": "node",
9489
"version": ">= 20"

0 commit comments

Comments
 (0)