Skip to content

Commit 39b26be

Browse files
committed
ci: Disable semantic-release/npm publish
1 parent f8036f1 commit 39b26be

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

.github/workflows/staging-step-1.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,9 @@ jobs:
296296
- name: Install dependencies
297297
run: npm ci
298298

299+
- name: Verify npm version
300+
run: npm --version
301+
299302
- name: Release --dry-run
300303
if: ${{ github.event.inputs.dryRun == 'true'}}
301304
run: |

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
],
1717
"publishConfig": {
1818
"access": "public",
19-
"provenance": true
19+
"provenance": true,
20+
"registry": "https://registry.npmjs.org"
2021
},
2122
"main": "dist/mparticle.common.js",
2223
"module": "dist/mparticle.esm.js",

release.config.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,17 @@ module.exports = {
3333
changelogFile: 'CHANGELOG.md',
3434
},
3535
],
36-
['@semantic-release/npm'],
36+
[
37+
'@semantic-release/npm',
38+
{
39+
npmPublish: false, // Disable npm publish here; we use exec with OIDC instead
40+
},
41+
],
3742
[
3843
'@semantic-release/exec',
3944
{
4045
prepareCmd: 'sh ./scripts/release.sh',
46+
publishCmd: 'npm publish',
4147
},
4248
],
4349
[

0 commit comments

Comments
 (0)