Skip to content

Commit 49ad2b7

Browse files
committed
ci: use npm trusted publishing
1 parent 24859dd commit 49ad2b7

2 files changed

Lines changed: 3 additions & 9 deletions

File tree

.github/workflows/release-nightly.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- run: corepack enable
2020
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
2121
with:
22-
node-version: lts/*
22+
node-version: latest
2323
cache: "pnpm"
2424

2525
- name: Install dependencies
@@ -43,7 +43,7 @@ jobs:
4343
- run: corepack enable
4444
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
4545
with:
46-
node-version: lts/*
46+
node-version: latest
4747
registry-url: "https://registry.npmjs.org/"
4848
cache: "pnpm"
4949

@@ -55,6 +55,3 @@ jobs:
5555

5656
- name: nightly release
5757
run: pnpm changelogen --canary nightly --publish
58-
env:
59-
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
60-
NPM_CONFIG_PROVENANCE: true

.github/workflows/release.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
2828
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
2929
with:
30-
node-version: lts/*
30+
node-version: latest
3131
registry-url: "https://registry.npmjs.org/"
3232
cache: "pnpm"
3333

@@ -39,9 +39,6 @@ jobs:
3939

4040
- name: 🛠 Build and release project
4141
run: pnpm changelogen --publish
42-
env:
43-
NODE_AUTH_TOKEN: ${{ secrets.RELEASE_NODE_AUTH_TOKEN }}
44-
NPM_CONFIG_PROVENANCE: true
4542

4643
- name: 🏷️ Create tag
4744
env:

0 commit comments

Comments
 (0)