fix(release): harden semantic-release publishing
This commit is contained in:
2
.github/workflows/publish.yml
vendored
2
.github/workflows/publish.yml
vendored
@@ -39,8 +39,10 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
# npm trusted publishing requires Node 22.14.0+.
|
# npm trusted publishing requires Node 22.14.0+.
|
||||||
node-version: "24"
|
node-version: "24"
|
||||||
|
registry-url: "https://registry.npmjs.org"
|
||||||
|
|
||||||
- name: Release
|
- name: Release
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
run: npx semantic-release
|
run: npx semantic-release
|
||||||
|
|||||||
@@ -2,5 +2,19 @@
|
|||||||
"branches": [
|
"branches": [
|
||||||
"main"
|
"main"
|
||||||
],
|
],
|
||||||
"tagFormat": "v${version}"
|
"tagFormat": "v${version}",
|
||||||
|
"plugins": [
|
||||||
|
"@semantic-release/commit-analyzer",
|
||||||
|
"@semantic-release/release-notes-generator",
|
||||||
|
"@semantic-release/npm",
|
||||||
|
[
|
||||||
|
"@semantic-release/github",
|
||||||
|
{
|
||||||
|
"successComment": false,
|
||||||
|
"failComment": false,
|
||||||
|
"labels": false,
|
||||||
|
"releasedLabels": false
|
||||||
|
}
|
||||||
|
]
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user