Skip to content

Commit f1099d5

Browse files
chore: update the workflow
1 parent 0060529 commit f1099d5

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

.github/workflows/nodejs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ jobs:
1515

1616
strategy:
1717
matrix:
18-
node-version: ['20', '22']
18+
node-version: ['22', '24']
1919

2020
steps:
2121
- uses: actions/checkout@v4
2222
- name: Install pnpm
2323
uses: pnpm/action-setup@v4
2424
with:
25-
version: 9
25+
version: 10
2626
- name: Use Node.js ${{ matrix.node-version }}
2727
uses: actions/setup-node@v4
2828
with:

.github/workflows/npm-publish.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ on:
1010
release:
1111
types: [created]
1212

13+
permissions:
14+
id-token: write # Required for OIDC
15+
contents: read
16+
1317
jobs:
1418
build:
1519
runs-on: ubuntu-latest
@@ -18,10 +22,10 @@ jobs:
1822
- name: Install pnpm
1923
uses: pnpm/action-setup@v4
2024
with:
21-
version: 9
25+
version: 10
2226
- uses: actions/setup-node@v4
2327
with:
24-
node-version: 20
28+
node-version: 24
2529
- run: pnpm install
2630

2731
publish-npm:
@@ -35,7 +39,7 @@ jobs:
3539
version: 9
3640
- uses: actions/setup-node@v4
3741
with:
38-
node-version: 20
42+
node-version: 24
3943
registry-url: https://registry.npmjs.org/
4044
scope: '@ngu'
4145
- name: Build and Publish
@@ -45,6 +49,3 @@ jobs:
4549
cd dist/libs/ngu/carousel
4650
npm publish --access=public
4751
shell: bash
48-
env:
49-
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
50-

0 commit comments

Comments
 (0)