Skip to content

Commit e395d5b

Browse files
authored
Switch to trusted publishing (#1368)
1 parent 225a3e4 commit e395d5b

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

.github/workflows/validate.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ on:
66
# e.g. "12.x" or "8.x"
77
- '[0-9]+.x'
88
- 'main'
9-
- 'next'
10-
- 'next-major'
119
- 'beta'
1210
- 'alpha'
1311
- '!all-contributors/**'
@@ -29,7 +27,7 @@ jobs:
2927
# Otherwise we would not know if the problem is tied to the Node.js version
3028
fail-fast: false
3129
matrix:
32-
node: [18, 20]
30+
node: [18, 24]
3331
runs-on: ubuntu-latest
3432
steps:
3533
- name: ⬇️ Checkout repo
@@ -63,7 +61,9 @@ jobs:
6361
token: ${{ secrets.CODECOV_TOKEN }} # required
6462

6563
release:
64+
environment: production
6665
permissions:
66+
id-token: write # Required for OIDC
6767
contents: write # to create release tags (cycjimmy/semantic-release-action)
6868
issues: write # to post release that resolves an issue
6969

@@ -79,7 +79,7 @@ jobs:
7979
- name: ⎔ Setup node
8080
uses: actions/setup-node@v3
8181
with:
82-
node-version: 18
82+
node-version: 24
8383

8484
- name: 📥 Download deps
8585
uses: bahmutov/npm-install@v1
@@ -90,18 +90,15 @@ jobs:
9090
run: npm run build
9191

9292
- name: 🚀 Release
93-
uses: cycjimmy/semantic-release-action@v2
93+
uses: cycjimmy/semantic-release-action@v5
9494
with:
95-
semantic_version: 17
95+
semantic_version: 25
9696
branches: |
9797
[
9898
'+([0-9])?(.{+([0-9]),x}).x',
9999
'main',
100-
'next',
101-
'next-major',
102100
{name: 'beta', prerelease: true},
103101
{name: 'alpha', prerelease: true}
104102
]
105103
env:
106104
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
107-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)