@@ -15,16 +15,16 @@ jobs:
1515 runs-on : ${{ matrix.os }}
1616 strategy :
1717 matrix :
18- node-version : [ 16 .x, 18 .x, 20.x, 22 .x ]
18+ node-version : [ 20 .x, 22 .x, 24 .x ]
1919 os : [ windows-latest, ubuntu-latest, macOS-latest ]
2020
2121 # Go
2222 steps :
2323 - name : Check out repo
24- uses : actions/checkout@v4
24+ uses : actions/checkout@v6
2525
2626 - name : Set up Node.js
27- uses : actions/setup-node@v4
27+ uses : actions/setup-node@v6
2828 with :
2929 node-version : ${{ matrix.node-version }}
3030
4040 - name : Install
4141 run : npm install
4242
43- - name : Test (Node.js <= 16.x)
44- if : matrix.node-version <= '16.x'
45- run : npm run test:nolint
46- env :
47- CI : true
48-
4943 - name : Test
50- if : matrix.node-version > '16.x'
5144 run : npm test
5245 env :
5346 CI : true
@@ -72,33 +65,32 @@ jobs:
7265 # Publish to package registries
7366 publish :
7467 # Setup
68+ permissions :
69+ id-token : write # Required for OIDC
70+ contents : read
7571 needs : build
7672 if : startsWith(github.ref, 'refs/tags/v')
7773 runs-on : ubuntu-latest
7874
7975 # Go
8076 steps :
8177 - name : Check out repo
82- uses : actions/checkout@v4
78+ uses : actions/checkout@v6
8379
8480 - name : Set up Node.js
85- uses : actions/setup-node@v4
81+ uses : actions/setup-node@v6
8682 with :
87- node-version : lts/*
83+ node-version : 24.x
8884 registry-url : https://registry.npmjs.org/
8985
9086 # Publish to npm
9187 - name : Publish @RC to npm
9288 if : contains(github.ref, 'RC')
9389 run : npm publish --tag RC
94- env :
95- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
9690
9791 - name : Publish @latest to npm
9892 if : contains(github.ref, 'RC') == false # '!contains()'' doesn't work lol
9993 run : npm publish
100- env :
101- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
10294
10395 - name : Notify
10496 uses : sarisia/actions-status-discord@v1
0 commit comments