Skip to content

Commit 1338d16

Browse files
Update GitHub Actions workflows for npm trusted publishers (#137)
* Initial plan * Update GitHub Actions workflows for npm trusted publishers - Upgrade actions/checkout from v4 to v5 - Upgrade actions/setup-node from v4 to v6 - Update node-version matrix to [lts/-1, lts/*, latest] - Update release job node-version to lts/* - Upgrade cycjimmy/semantic-release-action from v4 to v5.0.2 - Update semantic_version from 17 to 25 - Remove NPM_TOKEN environment variable - Add explicit permissions block to release job Co-authored-by: MichaelDeBoey <[email protected]> * Update .github/workflows/validate.yml * Update .github/workflows/validate.yml --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: MichaelDeBoey <[email protected]> Co-authored-by: Michaël De Boey <[email protected]>
1 parent a05be52 commit 1338d16

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

.github/workflows/validate.yml

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ jobs:
2121
if: ${{ !contains(github.head_ref, 'all-contributors') }}
2222
strategy:
2323
matrix:
24-
node: [18, 20, 22]
24+
node: [18, 20, 22, 24]
2525
runs-on: ubuntu-latest
2626
steps:
2727
- name: ⬇️ Checkout repo
28-
uses: actions/checkout@v4
28+
uses: actions/checkout@v5
2929

3030
- name: ⎔ Setup node
31-
uses: actions/setup-node@v4
31+
uses: actions/setup-node@v6
3232
with:
3333
node-version: ${{ matrix.node }}
3434

@@ -50,14 +50,19 @@ jobs:
5050
${{ github.repository == 'remark-embedder/core' &&
5151
contains('refs/heads/main,refs/heads/beta,refs/heads/next,refs/heads/alpha',
5252
github.ref) && github.event_name == 'push' }}
53+
permissions:
54+
contents: write # to be able to publish a GitHub release
55+
id-token: write # to enable use of OIDC for npm provenance
56+
issues: write # to be able to comment on released issues
57+
pull-requests: write # to be able to comment on released pull requests
5358
steps:
5459
- name: ⬇️ Checkout repo
55-
uses: actions/checkout@v4
60+
uses: actions/checkout@v5
5661

5762
- name: ⎔ Setup node
58-
uses: actions/setup-node@v4
63+
uses: actions/setup-node@v6
5964
with:
60-
node-version: 20
65+
node-version: lts/*
6166

6267
- name: 📥 Download deps
6368
uses: bahmutov/npm-install@v1
@@ -68,9 +73,9 @@ jobs:
6873
run: npm run build
6974

7075
- name: 🚀 Release
71-
uses: cycjimmy/semantic-release-action@v4
76+
uses: cycjimmy/semantic-release-action@v5
7277
with:
73-
semantic_version: 17
78+
semantic_version: 25
7479
branches: |
7580
[
7681
'+([0-9])?(.{+([0-9]),x}).x',
@@ -82,4 +87,3 @@ jobs:
8287
]
8388
env:
8489
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
85-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)