Skip to content

Commit 8552c31

Browse files
committed
ci(release): update npm settings and workflow for registry and provenance handling
1 parent 20377c4 commit 8552c31

4 files changed

Lines changed: 9 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ jobs:
4848
node-version: 22
4949
cache: 'npm'
5050

51+
- name: Update npm
52+
run: |
53+
npm install -g npm@latest
54+
npm -v
55+
5156
- name: Install dependencies
5257
run: npm ci
5358

@@ -61,8 +66,6 @@ jobs:
6166
DEBUG: release-it:*,@release-it/*
6267
HUSKY: 0
6368
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
64-
NPM_CONFIG_PROVENANCE: true
65-
NPM_CONFIG_REGISTRY: https://registry.npmjs.org
6669
run: |
6770
VERSION_ARG=""
6871
if [ -n "${{ inputs.version }}" ]; then

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@ stats.html
1616
.tool-versions
1717
.cache
1818
*-stats.txt
19+
.npmrc

.release-it.cjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ module.exports = () => {
137137
skipChecks: true,
138138
provenance: true,
139139
access: "public",
140+
registry: "https://registry.npmjs.org/",
140141
versionArgs: ["--no-git-tag-version"],
141142
},
142143

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
"url": "git+https://github.com/addon-stack/addon-bone.git"
1111
},
1212
"publishConfig": {
13-
"access": "public"
13+
"access": "public",
14+
"provenance": true
1415
},
1516
"bugs": {
1617
"url": "https://github.com/addon-stack/addon-bone/issues"

0 commit comments

Comments
 (0)