File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,14 +29,23 @@ jobs:
2929 runs-on : ubuntu-latest
3030 steps :
3131 - name : Checkout
32- uses : actions/checkout@v4
32+ uses : actions/checkout@v6
33+
3334 - name : Set up Node
34- uses : actions/setup-node@v4
35+ uses : actions/setup-node@v6
3536 with :
36- node-version : 20
37- cache : " npm"
38- - name : Install yarn
39- run : npm install -g yarn
37+ node-version : " 24.x"
38+
39+ - name : Enable Corepack
40+ shell : bash
41+ run : corepack enable
42+
43+ - name : Check cache for installed packages
44+ uses : actions/cache@v6
45+ with :
46+ path : " **/node_modules"
47+ key : ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
48+
4049 - name : Install dependencies
4150 run : |
4251 yarn install
@@ -46,12 +55,12 @@ jobs:
4655 yarn build
4756 yarn --cwd example build
4857 - name : Setup Pages
49- uses : actions/configure-pages@v5
58+ uses : actions/configure-pages@v6
5059 - name : Upload artifact
51- uses : actions/upload-pages-artifact@v3
60+ uses : actions/upload-pages-artifact@v5
5261 with :
5362 # Upload dist repository
5463 path : " ./example/dist"
5564 - name : Deploy to GitHub Pages
5665 id : deployment
57- uses : actions/deploy-pages@v4
66+ uses : actions/deploy-pages@v5
Original file line number Diff line number Diff line change @@ -11,24 +11,25 @@ jobs:
1111
1212 steps :
1313 - name : Checkout repository
14- uses : actions/checkout@v4
14+ uses : actions/checkout@v6
1515
1616 - name : Set up Node.js
17- uses : actions/setup-node@v4
17+ uses : actions/setup-node@v6
1818 with :
19- node-version : " 20.x"
19+ node-version : " 24.x"
20+
21+ - name : Enable Corepack
22+ shell : bash
23+ run : corepack enable
2024
2125 - name : Authenticate with npm
2226 run : echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_PUBLISH_TOKEN }}" > ~/.npmrc
2327
24- - name : Install yarn
25- run : npm install -g yarn
26-
27- - name : Check cache for packages already installed
28- uses : actions/cache@v3
28+ - name : Check cache for installed packages
29+ uses : actions/cache@v6
2930 with :
3031 path : " **/node_modules"
31- key : yarn- ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
32+ key : ${{ runner.os }}-node -${{ hashFiles('**/yarn.lock') }}
3233
3334 - name : Install dependencies
3435 run : yarn install
You can’t perform that action at this time.
0 commit comments