Skip to content

Commit 2288a4e

Browse files
committed
Update GitHub Actions: Add support for Node.js 22, update checkout and setup-node actions, and streamline documentation steps
1 parent cd5e597 commit 2288a4e

1 file changed

Lines changed: 13 additions & 10 deletions

File tree

.github/workflows/build.yml

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,14 @@ jobs:
1616
strategy:
1717
matrix:
1818
node-version:
19+
- "22"
20+
- "20"
21+
- "18"
1922
- "16"
2023
- "14"
2124

2225
steps:
23-
- uses: actions/checkout@v2
26+
- uses: actions/checkout@v5
2427
- run: yarn
2528

2629
Publish:
@@ -29,8 +32,8 @@ jobs:
2932
if: startsWith(github.ref, 'v')
3033

3134
steps:
32-
- uses: actions/checkout@v3
33-
- uses: actions/setup-node@v3
35+
- uses: actions/checkout@v5
36+
- uses: actions/setup-node@v6
3437
with:
3538
node-version: '16.x'
3639
registry-url: 'https://registry.npmjs.org'
@@ -40,11 +43,11 @@ jobs:
4043
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4144

4245
Documentation:
43-
runs-on: 'ubuntu-latest'
44-
needs: Build
4546
if: github.ref == 'refs/heads/master'
46-
env:
47-
DOC_GITHUB_TOKEN: '${{ secrets.DOC_TOKEN }}'
48-
steps:
49-
- uses: actions/checkout@v2
50-
- run: curl https://opensource.byjg.com/add-doc.sh | bash /dev/stdin js jquery-sse
47+
needs: Build
48+
uses: byjg/byjg.github.io/.github/workflows/add-doc.yaml@master
49+
with:
50+
folder: php
51+
project: ${{ github.event.repository.name }}
52+
secrets:
53+
DOC_TOKEN: ${{ secrets.DOC_TOKEN }}

0 commit comments

Comments
 (0)