Skip to content

Commit adde3c7

Browse files
committedMar 16, 2024·
format and try node 16
1 parent a8d2227 commit adde3c7

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed
 

‎.github/workflows/astro.yml

+22-22
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Deploy Astro to GitHub Pages
33
on:
44
# Trigger the workflow every time you push to the `main` branch
55
push:
6-
branches: [ main ]
6+
branches: [main]
77
# Allows you to run this workflow manually from the Actions tab on GitHub.
88
workflow_dispatch:
99

@@ -17,27 +17,27 @@ jobs:
1717
build:
1818
runs-on: ubuntu-latest
1919
steps:
20-
- name: Check out your repository using git
21-
uses: actions/checkout@v2
22-
23-
- name: Use Node.js 18
24-
uses: actions/setup-node@v2
25-
with:
26-
node-version: '18'
27-
cache: 'npm'
28-
29-
# Not using npm? Change `npm ci` to `yarn install` or `pnpm i`
30-
- name: Install dependencies
31-
run: npm ci
32-
33-
# Not using npm? Change `npm run build` to `yarn build` or `pnpm run build`
34-
- name: Build Astro
35-
run: npm run build --if-present
36-
37-
- name: Upload artifact
38-
uses: actions/upload-pages-artifact@v1
39-
with:
40-
path: ./dist
20+
- name: Check out your repository using git
21+
uses: actions/checkout@v2
22+
23+
- name: Use Node.js 16
24+
uses: actions/setup-node@v2
25+
with:
26+
node-version: "16"
27+
cache: "npm"
28+
29+
# Not using npm? Change `npm ci` to `yarn install` or `pnpm i`
30+
- name: Install dependencies
31+
run: npm ci
32+
33+
# Not using npm? Change `npm run build` to `yarn build` or `pnpm run build`
34+
- name: Build Astro
35+
run: npm run build --if-present
36+
37+
- name: Upload artifact
38+
uses: actions/upload-pages-artifact@v1
39+
with:
40+
path: ./dist
4141

4242
deploy:
4343
environment:

0 commit comments

Comments
 (0)
Please sign in to comment.