Skip to content

Commit da3c325

Browse files
authored
fix: npmjs authentication (#139)
1 parent 2483bda commit da3c325

3 files changed

Lines changed: 9 additions & 11 deletions

File tree

.github/workflows/pull_request.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212

1313
strategy:
1414
matrix:
15-
node-version: [22.x]
15+
node-version: [lts/*]
1616

1717
steps:
1818
- uses: actions/checkout@v4
@@ -35,5 +35,3 @@ jobs:
3535
- run: npm test
3636
env:
3737
CI: true
38-
# - name: Publish to npm
39-
# uses: pascalgn/npm-publish-action@1.2.0

.github/workflows/release.yaml

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

3-
permissions:
4-
id-token: write # Required for OIDC
5-
contents: write
6-
73
on:
84
#push:
95
# branches:
@@ -22,7 +18,11 @@ jobs:
2218
runs-on: ubuntu-latest
2319
outputs:
2420
version: ${{ steps.version.outputs.test }}
25-
21+
permissions:
22+
contents: write # to be able to publish a GitHub release
23+
issues: write # to be able to comment on released issues
24+
pull-requests: write # to be able to comment on released pull requests
25+
id-token: write # to enable use of OIDC for npm provenance
2626
steps:
2727
- name: Checkout
2828
uses: actions/checkout@v4
@@ -32,7 +32,7 @@ jobs:
3232
- name: Setup Node.js
3333
uses: actions/setup-node@v4
3434
with:
35-
node-version: 22
35+
node-version: lts/*
3636
- name: Install dependencies
3737
run: npm ci
3838
- name: Install semantic-release extra plugins
@@ -47,7 +47,7 @@ jobs:
4747
id: release
4848
env:
4949
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
50-
NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
50+
# NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
5151
run: |
5252
npx semantic-release
5353
echo "version=$(npx semantic-release --version)" >> $GITHUB_OUTPUT

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
],
7272
"repository": {
7373
"type": "git",
74-
"url": "https://github.com/koblas/stdnum-js.git"
74+
"url": "git+https://github.com/koblas/stdnum-js.git"
7575
},
7676
"license": "MIT",
7777
"devDependencies": {

0 commit comments

Comments
 (0)