Skip to content

Commit 4976d92

Browse files
committed
Switch to trusted publishing
1 parent 225a3e4 commit 4976d92

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

.github/workflows/validate.yml

Lines changed: 4 additions & 7 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/**'
@@ -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

@@ -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)