You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Trigger the workflow every time you push to the `main` branch
5
-
# Using a different branch name? Replace `main` with your branch’s name
6
4
push:
7
5
branches: [ main ]
8
-
# Allows you to run this workflow manually from the Actions tab on GitHub.
9
6
workflow_dispatch:
10
7
11
-
# Allow this job to clone the repo and create a page deployment
12
8
permissions:
13
9
contents: read
14
10
pages: write
@@ -18,27 +14,42 @@ jobs:
18
14
build:
19
15
runs-on: ubuntu-latest
20
16
steps:
21
-
- name: Checkout your repository using git
17
+
- name: Checkout repository
22
18
uses: actions/checkout@v5
23
-
- name: Install, build, and upload your site
24
-
uses: withastro/action@v5
25
-
with:
26
-
# path: . # The root location of your Astro project inside the repository. (optional)
27
-
# node-version: 24 # The specific version of Node that should be used to build your site. Defaults to 22. (optional)
28
-
package-manager: npm
29
-
working-directory: project # The Node package manager that should be used to install dependencies and build your site. Automatically detected based on your lockfile. (optional)
30
-
# build-cmd: pnpm run build
31
-
# The command to run to build your site. Runs the package build script/task by default. (optional)
32
-
# env:
33
-
# PUBLIC_POKEAPI: 'https://pokeapi.co/api/v2' # Use single quotation marks for the variable value. (optional)
19
+
20
+
- name: Set up Node.js
21
+
uses: actions/setup-node@v3
22
+
with:
23
+
node-version: 20# or whichever Node version you want
0 commit comments