88
99 steps :
1010 - uses : actions/checkout@v4
11- - uses : actions/setup-node@v3
12- with :
13- cache : yarn
14- node-version : 20
15- - run : yarn install --frozen-lockfile
11+ - uses : oven-sh/setup-bun@v1
12+
13+ - run : bun install --frozen-lockfile
1614
1715 - run : npm run type
1816 - run : npm run lint
@@ -46,22 +44,18 @@ jobs:
4644 test -f dist/github-contribution-grid-snake-dark.svg
4745 test -f dist/github-contribution-grid-snake.gif
4846
49- - uses : crazy-max/ghaction-github-pages@v3 .1.0
47+ - uses : crazy-max/ghaction-github-pages@v4 .1.0
5048 with :
5149 target_branch : output
5250 build_dir : dist
53- env :
54- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
5551
5652 test-action-svg-only :
5753 runs-on : ubuntu-latest
5854 steps :
5955 - uses : actions/checkout@v4
60- - uses : actions/setup-node@v3
61- with :
62- cache : yarn
63- node-version : 20
64- - run : yarn install --frozen-lockfile
56+ - uses : oven-sh/setup-bun@v1
57+
58+ - run : bun install --frozen-lockfile
6559
6660 - name : build svg-only action
6761 run : |
@@ -84,31 +78,29 @@ jobs:
8478 test -f dist/github-contribution-grid-snake.svg
8579 test -f dist/github-contribution-grid-snake-dark.svg
8680
87- - uses : crazy-max/ghaction-github-pages@v3 .1.0
81+ - uses : crazy-max/ghaction-github-pages@v4 .1.0
8882 with :
8983 target_branch : output-svg-only
9084 build_dir : dist
91- env :
92- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
9385
9486 deploy-ghpages :
9587 runs-on : ubuntu-latest
88+ permissions :
89+ pages : write
90+ id-token : write
9691 steps :
9792 - uses : actions/checkout@v4
98- - uses : actions/setup-node@v3
99- with :
100- cache : yarn
101- node-version : 20
102- - run : yarn install --frozen-lockfile
93+ - uses : oven-sh/setup-bun@v1
94+
95+ - run : bun install --frozen-lockfile
10396
10497 - run : npm run build:demo
10598 env :
10699 GITHUB_USER_CONTRIBUTION_API_ENDPOINT : https://snk-one.vercel.app/api/github-user-contribution/
107100
108- - uses : crazy-max/ghaction-github-pages@v3.1.0
109- if : success() && github.ref == 'refs/heads/main'
101+ - uses : actions/upload-pages-artifact@v3
110102 with :
111- target_branch : gh-pages
112- build_dir : packages/demo/dist
113- env :
114- GITHUB_TOKEN : ${{ secrets.MY_GITHUB_TOKEN_GH_PAGES }}
103+ path : dist
104+
105+ - uses : actions/deploy-pages@v4
106+ if : success() && github.ref == 'refs/heads/main'
0 commit comments