Skip to content

Commit 1045eaf

Browse files
authored
Configure npm as package manager in deploy workflow
Updated the deploy workflow to use npm as the package manager and specified the working directory.
1 parent 9d85ad4 commit 1045eaf

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/deploy.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,12 @@ jobs:
2222
uses: actions/checkout@v5
2323
- name: Install, build, and upload your site
2424
uses: withastro/action@v5
25-
# with:
25+
with:
2626
# path: . # The root location of your Astro project inside the repository. (optional)
2727
# node-version: 24 # The specific version of Node that should be used to build your site. Defaults to 22. (optional)
28-
# package-manager: pnpm@latest # The Node package manager that should be used to install dependencies and build your site. Automatically detected based on your lockfile. (optional)
28+
package-manager: npm
29+
working-directory: project
30+
# The Node package manager that should be used to install dependencies and build your site. Automatically detected based on your lockfile. (optional)
2931
# build-cmd: pnpm run build
3032
# The command to run to build your site. Runs the package build script/task by default. (optional)
3133
# env:
@@ -40,4 +42,4 @@ jobs:
4042
steps:
4143
- name: Deploy to GitHub Pages
4244
id: deployment
43-
uses: actions/deploy-pages@v4
45+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)