Skip to content

Commit 01cf00e

Browse files
Copilotkentcdodds
andauthored
chore: Update GitHub Actions workflows to use trusted publishers and npm OIDC authentication (#28)
* Initial plan * Update GitHub Actions workflow to use trusted publishers and latest action versions Co-authored-by: kentcdodds <[email protected]> * Update .github/workflows/release.yml * Update .github/workflows/release.yml --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: kentcdodds <[email protected]> Co-authored-by: Kent C. Dodds <[email protected]>
1 parent 33d8db9 commit 01cf00e

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ jobs:
1717
runs-on: ubuntu-latest
1818
steps:
1919
- name: ⬇️ Checkout repo
20-
uses: actions/checkout@v3
20+
uses: actions/checkout@v5
2121

2222
- name: ⎔ Setup node
23-
uses: actions/setup-node@v3
23+
uses: actions/setup-node@v6
2424
with:
25-
node-version: 20
25+
node-version: lts/*
2626

2727
- name: 📥 Download deps
2828
uses: bahmutov/npm-install@v1
@@ -48,12 +48,12 @@ jobs:
4848
github.ref) && github.event_name == 'push' }}
4949
steps:
5050
- name: ⬇️ Checkout repo
51-
uses: actions/checkout@v3
51+
uses: actions/checkout@v5
5252

5353
- name: ⎔ Setup node
54-
uses: actions/setup-node@v3
54+
uses: actions/setup-node@v6
5555
with:
56-
node-version: 20
56+
node-version: lts/*
5757

5858
- name: 📥 Download deps
5959
uses: bahmutov/npm-install@v1
@@ -67,9 +67,9 @@ jobs:
6767
--moduleResolution nodenext --target es2022 --outDir . index.js
6868

6969
- name: 🚀 Release
70-
uses: cycjimmy/semantic-release-action@v3.2.0
70+
uses: cycjimmy/semantic-release-action@v5.0.2
7171
with:
72-
semantic_version: 17
72+
semantic_version: 25
7373
branches: |
7474
[
7575
'+([0-9])?(.{+([0-9]),x}).x',
@@ -82,4 +82,3 @@ jobs:
8282
env:
8383
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8484
NPM_CONFIG_PROVENANCE: true
85-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)