Skip to content

Commit b1bd574

Browse files
committed
1 parent ca9b1db commit b1bd574

File tree

6 files changed

+24
-11
lines changed

6 files changed

+24
-11
lines changed

.github/workflows/lint.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ jobs:
1212
steps:
1313
- uses: 'actions/[email protected]'
1414

15-
- name: 'Use Node.js'
15+
- name: 'Setup Node.js'
1616
uses: 'actions/[email protected]'
1717
with:
1818
node-version: 'lts/*'
1919
cache: 'npm'
2020

21-
- name: 'Install'
22-
run: 'npm install'
21+
- name: 'Install dependencies'
22+
run: 'npm clean-install'
2323

2424
- run: 'npm run lint:commit -- --to "${{ github.sha }}"'
2525
- run: 'npm run lint:editorconfig'

.github/workflows/release.yml

+11-3
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,28 @@ on:
77
jobs:
88
release:
99
runs-on: 'ubuntu-latest'
10+
permissions:
11+
contents: 'write'
12+
issues: 'write'
13+
pull-requests: 'write'
14+
id-token: 'write'
1015
steps:
1116
- uses: 'actions/[email protected]'
1217
with:
1318
fetch-depth: 0
1419
persist-credentials: false
1520

16-
- name: 'Use Node.js'
21+
- name: 'Setup Node.js'
1722
uses: 'actions/[email protected]'
1823
with:
1924
node-version: 'lts/*'
2025
cache: 'npm'
2126

22-
- name: 'Install'
23-
run: 'npm install'
27+
- name: 'Install dependencies'
28+
run: 'npm clean-install'
29+
30+
- name: 'Verify the integrity of provenance attestations and registry signatures for installed dependencies'
31+
run: 'npm audit signatures'
2432

2533
- name: 'Release'
2634
run: 'npm run release'

.github/workflows/test.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ jobs:
1212
steps:
1313
- uses: 'actions/[email protected]'
1414

15-
- name: 'Use Node.js'
15+
- name: 'Setup Node.js'
1616
uses: 'actions/[email protected]'
1717
with:
1818
node-version: 'lts/*'
1919
cache: 'npm'
2020

21-
- name: 'Install'
22-
run: 'npm install'
21+
- name: 'Install dependencies'
22+
run: 'npm clean-install'
2323

2424
- name: 'Test'
2525
run: 'npm run test'

.npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
save-exact=true
2+
provenance=true

package-lock.json

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

package.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,13 @@
2727
"index.js",
2828
".eslintrc.json"
2929
],
30+
"publishConfig": {
31+
"access": "public",
32+
"provenance": true
33+
},
3034
"engines": {
3135
"node": ">=16.0.0",
32-
"npm": ">=8.0.0"
36+
"npm": ">=9.0.0"
3337
},
3438
"scripts": {
3539
"lint:commit": "commitlint",

0 commit comments

Comments
 (0)