Skip to content

Commit

Permalink
format and try node 16
Browse files Browse the repository at this point in the history
  • Loading branch information
Zynh0722 committed Mar 16, 2024
1 parent a8d2227 commit adde3c7
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions .github/workflows/astro.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Deploy Astro to GitHub Pages
on:
# Trigger the workflow every time you push to the `main` branch
push:
branches: [ main ]
branches: [main]
# Allows you to run this workflow manually from the Actions tab on GitHub.
workflow_dispatch:

Expand All @@ -17,27 +17,27 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out your repository using git
uses: actions/checkout@v2

- name: Use Node.js 18
uses: actions/setup-node@v2
with:
node-version: '18'
cache: 'npm'

# Not using npm? Change `npm ci` to `yarn install` or `pnpm i`
- name: Install dependencies
run: npm ci

# Not using npm? Change `npm run build` to `yarn build` or `pnpm run build`
- name: Build Astro
run: npm run build --if-present

- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: ./dist
- name: Check out your repository using git
uses: actions/checkout@v2

- name: Use Node.js 16
uses: actions/setup-node@v2
with:
node-version: "16"
cache: "npm"

# Not using npm? Change `npm ci` to `yarn install` or `pnpm i`
- name: Install dependencies
run: npm ci

# Not using npm? Change `npm run build` to `yarn build` or `pnpm run build`
- name: Build Astro
run: npm run build --if-present

- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: ./dist

deploy:
environment:
Expand Down

0 comments on commit adde3c7

Please sign in to comment.