Skip to content

Commit 41a85e8

Browse files
committed
fix npm publish
1 parent 65f3d1f commit 41a85e8

File tree

2 files changed

+17
-27
lines changed

2 files changed

+17
-27
lines changed

.github/workflows/npmpublish.yml

Lines changed: 15 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,25 @@
1-
name: Publish new NPM Package
1+
name: Publish Package
22

33
on:
44
release:
55
types: [created]
66

7+
permissions:
8+
id-token: write
9+
contents: read
10+
711
jobs:
8-
build:
12+
publish:
913
runs-on: ubuntu-latest
1014
steps:
11-
- uses: actions/checkout@v1
12-
- uses: actions/setup-node@v1
13-
with:
14-
node-version: 12
15-
- name: npm install and test
16-
run: |
17-
npm install
18-
npm test
15+
- uses: actions/checkout@v4
1916

20-
publish-npm:
21-
needs: build
22-
runs-on: ubuntu-latest
23-
steps:
24-
- uses: actions/checkout@v1
25-
- uses: actions/setup-node@v1
17+
- uses: actions/setup-node@v4
2618
with:
27-
node-version: 12
28-
registry-url: https://registry.npmjs.org/
29-
- name: npm install and publish
30-
run: |
31-
npm install
32-
npm publish
33-
env:
34-
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
19+
node-version: '24'
20+
registry-url: 'https://registry.npmjs.org'
21+
22+
- run: npm ci
23+
- run: npm run build --if-present
24+
- run: npm test
25+
- run: npm publish

.vscode/settings.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"editor.codeActionsOnSave": {
3-
"source.fixAll.eslint": true
3+
"source.fixAll.eslint": "explicit"
44
}
5-
}
6-
5+
}

0 commit comments

Comments
 (0)