Skip to content

Commit bf7cd1a

Browse files
committed
fix: separate semantic-release from npm publish for OIDC
1 parent 94a86b0 commit bf7cd1a

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,23 +21,28 @@ jobs:
2121
with:
2222
fetch-depth: 0
2323

24-
# --- Build ---
2524
- uses: actions/setup-node@v4
2625
with:
2726
node-version: "lts/*"
2827
cache: npm
2928
registry-url: "https://registry.npmjs.org"
3029
scope: "@allohouston"
30+
3131
- run: npm ci
3232
- run: npm run build
3333

34-
# --- npmjs.com (Trusted Publisher via OIDC) ---
34+
# semantic-release: version bump, git tag, GitHub release (no npm publish)
3535
- run: npx semantic-release
3636
env:
3737
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38-
NPM_CONFIG_PROVENANCE: true
3938

40-
# --- GitHub Packages ---
39+
# npmjs.com via Trusted Publisher (OIDC)
40+
- run: npm publish --provenance --access public
41+
env:
42+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
43+
continue-on-error: true
44+
45+
# GitHub Packages
4146
- uses: actions/setup-node@v4
4247
with:
4348
node-version: "lts/*"

.releaserc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
[
1717
"@semantic-release/npm",
1818
{
19-
"npmPublish": true,
20-
"pkgRoot": "."
19+
"npmPublish": false
2120
}
2221
],
2322
[

0 commit comments

Comments
 (0)