Skip to content

Commit d027b49

Browse files
committed
fix permission
Signed-off-by: seven <[email protected]>
1 parent d0c7db7 commit d027b49

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

.github/workflows/page-site.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,31 +5,33 @@ on:
55
pull_request:
66
branches: [master]
77

8-
permissions:
9-
checks: write
10-
contents: write
11-
128
jobs:
139
publish:
1410
runs-on: ubuntu-latest
1511
permissions:
16-
contents: read
12+
checks: write
13+
contents: write
1714
deployments: write
1815
name: Publish to Cloudflare Pages
1916
steps:
2017
- name: Checkout
2118
uses: actions/checkout@v4
19+
- name: Use Node.js 20.x
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: 20.x
23+
cache: 'npm'
2224
- run: npm ci
2325
- run: npm run docs:build
2426
- name: Create Tag
25-
uses: jaywcjlove/create-tag-action@v1.3.20
27+
uses: jaywcjlove/create-tag-action@main
2628
if: ${{ github.ref == 'refs/heads/master' }}
2729
id: create_tag
2830
with:
2931
token: ${{ secrets.GITHUB_TOKEN }}
3032

3133
- name: Create Release
32-
uses: jaywcjlove/create-tag-action@v1.3.20
34+
uses: jaywcjlove/create-tag-action@main
3335
if: steps.create_tag.outputs.successful
3436
id: tag_release
3537
with:

0 commit comments

Comments
 (0)