Skip to content

Commit 8227843

Browse files
committed
npm provenance
1 parent bf02986 commit 8227843

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ jobs:
2727
needs: test
2828
permissions:
2929
contents: write
30+
id-token: write
3031
steps:
3132
- uses: actions/checkout@v4
3233
- uses: actions/setup-node@v4
@@ -37,7 +38,7 @@ jobs:
3738
- run: yarn install --frozen-lockfile
3839
- run: yarn ci
3940

40-
- run: npm publish
41+
- run: npm publish --provenance --access public
4142
env:
4243
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4344

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"type": "module",
33
"name": "url-normalize",
4-
"version": "2.1.0",
4+
"version": "2.1.1",
55
"license": "MIT",
66
"scripts": {
77
"build": "rm -rf dist && pkgroll --minify && ls -lah dist",
8-
"test": "tsc --noEmit && uvu -r tsm tests/",
8+
"test": "uvu -r tsm tests/",
99
"test-cov": "c8 --include=src yarn test",
1010
"test-watch": "watchexec -e ts 'clear && yarn test'",
1111
"bench": "node --loader tsm --no-warnings benchmark.ts",

0 commit comments

Comments
 (0)