Skip to content

Commit 7577ed1

Browse files
ci(github): remove npm token and use trusted publishing
1 parent bcaa908 commit 7577ed1

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

.github/workflows/release-please.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,11 @@ jobs:
3535
- name: Use Node.js
3636
uses: actions/setup-node@v6
3737
with:
38-
node-version-file: .nvmrc
38+
node-version: lts
3939
registry-url: https://registry.npmjs.org
4040

4141
- name: Install dependencies
4242
run: npm ci --prefer-offline
4343

4444
- name: Publish
4545
run: npm publish --provenance --access public
46-
env:
47-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"lint:package": "publint",
3838
"lint:tsc": "tsc --noEmit",
3939
"prepare": "husky",
40-
"prepublishOnly": "run-s lint lint:tsc test:server clean build lint:package",
40+
"prepublishOnly": "run-s lint lint:tsc clean build lint:package",
4141
"size-limit": "size-limit",
4242
"test": "run-s test:server test:client",
4343
"test:client": "npm run test:client:watch -- --single-run",

0 commit comments

Comments
 (0)