Skip to content

Commit 78ce055

Browse files
authored
Merge pull request #65 from github/dg/maintenance
Actions/Node Maintenance
2 parents 3ab8e25 + 5133ab3 commit 78ce055

File tree

4 files changed

+29
-62
lines changed

4 files changed

+29
-62
lines changed

.github/workflows/nodejs.yml

+5
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
push:
55
branches:
66
- main
7+
8+
permissions:
9+
contents: read
10+
711
jobs:
812
build:
913
runs-on: ubuntu-latest
@@ -13,6 +17,7 @@ jobs:
1317
uses: actions/setup-node@v4
1418
with:
1519
node-version-file: '.node-version'
20+
cache: 'npm'
1621
- run: npm install
1722
- run: npm run build
1823
- run: npm test

.github/workflows/publish.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
permissions:
1111
contents: read
12+
id-token: write
1213
steps:
1314
- uses: actions/checkout@v4
1415
- uses: actions/setup-node@v4
@@ -21,6 +22,6 @@ jobs:
2122
- run: npm version ${TAG_NAME} --git-tag-version=false
2223
env:
2324
TAG_NAME: ${{ github.event.release.tag_name }}
24-
- run: npm whoami; npm --ignore-scripts publish
25+
- run: npm whoami; npm --ignore-scripts publish --provenance
2526
env:
2627
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

.node-version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20.11.0
1+
22

package-lock.json

+21-60
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)