Skip to content

Commit b241b35

Browse files
committed
feat: ci lint attept #2
1 parent daa78c5 commit b241b35

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

.github/workflows/test.yml

+14-4
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ on:
1414
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
1515
permissions:
1616
contents: read
17-
pages: write
1817
id-token: write
1918

2019
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
@@ -26,7 +25,6 @@ concurrency:
2625
jobs:
2726
# Lint files
2827
lint:
29-
name: Lint
3028
runs-on: ubuntu-latest
3129
steps:
3230
- name: Checkout
@@ -41,8 +39,6 @@ jobs:
4139
with:
4240
node-version: 20
4341
cache: pnpm
44-
- name: Setup Pages
45-
uses: actions/configure-pages@v4
4642
- name: Install dependencies
4743
run: pnpm install
4844
- name: Lint
@@ -53,6 +49,20 @@ jobs:
5349
needs: lint
5450
runs-on: ubuntu-latest
5551
steps:
52+
- name: Checkout
53+
uses: actions/checkout@v4
54+
with:
55+
fetch-depth: 0 # Not needed if lastUpdated is not enabled
56+
- uses: pnpm/action-setup@v3 # Uncomment this if you're using pnpm
57+
with:
58+
version: 9.5
59+
- name: Setup Node
60+
uses: actions/setup-node@v4
61+
with:
62+
node-version: 20
63+
cache: pnpm
64+
- name: Install dependencies
65+
run: pnpm install
5666
- name: Build with VitePress
5767
run: pnpm build
5868
- name: Upload artifact

0 commit comments

Comments
 (0)