Skip to content

Commit 455a008

Browse files
committed
fixup! ci: add semantic-versioning release to GH action
1 parent 9ae38f2 commit 455a008

2 files changed

Lines changed: 8 additions & 7 deletions

File tree

.github/workflows/tests.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,13 @@ jobs:
8787
id-token: write # to enable use of OIDC for npm provenance
8888
steps:
8989
- name: Checkout
90-
uses: actions/checkout@v4
90+
uses: actions/checkout@v6
9191
with:
9292
fetch-depth: 0
9393
- name: Setup Node.js
94-
uses: actions/setup-node@v4
94+
uses: actions/setup-node@v6
9595
with:
96-
node-version: 22
96+
node-version: 24
9797
cache: 'npm'
9898
- name: Install dependencies
9999
run: npm clean-install
@@ -102,6 +102,8 @@ jobs:
102102
- name: Release
103103
env:
104104
NPM_CONFIG_PROVENANCE: true
105-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
105+
# Prefer a dedicated PAT (e.g. to push the release commit/tag to the
106+
# protected `master` branch); fall back to the built-in token otherwise.
107+
GITHUB_TOKEN: ${{ secrets.RELEASE_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
106108
run: npx semantic-release
107109

release.config.mjs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
export default {
2-
preset: 'conventionalcommits',
32
plugins: [
4-
'@semantic-release/commit-analyzer',
5-
'@semantic-release/release-notes-generator',
3+
['@semantic-release/commit-analyzer', { preset: 'conventionalcommits' }],
4+
['@semantic-release/release-notes-generator', { preset: 'conventionalcommits' }],
65
['@semantic-release/changelog', { changelogTitle: '# Changelog' }],
76
'@semantic-release/npm',
87
'@semantic-release/github',

0 commit comments

Comments
 (0)