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
Copy file name to clipboardExpand all lines: README.md
+5-9Lines changed: 5 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,10 +11,8 @@ For more information, please see our complete deployment guide—[Deploy your As
11
11
### Inputs
12
12
13
13
-`path` - Optional: the root location of your Astro project inside the repository.
14
-
-`node-version` - Optional: the specific version of Node that should be used to build your site. Defaults to `16`.
15
-
-`package-manager` - Optional: the Node package manager that should be used to install dependencies and build your site. Automatically detected based on your lockfile. Accepted values: `npm`, `yarn`, `pnpm`, and `bun`.
16
-
-`pnpm-version` - Optional: If `package-manager` is set to `pnpm`, use this specific version. Defaults to `7.x.x`.
17
-
-`resolve-dep-from-path` - Optional: If the dependency file should be resolved from the root location of your Astro project. Defaults to `true`.
14
+
-`node-version` - Optional: the specific version of Node that should be used to build your site. Defaults to `18`.
15
+
-`package-manager` - Optional: the Node package manager that should be used to install dependencies and build your site. Automatically detected based on your lockfile. Accepted values: `npm`, `yarn`, `pnpm`, and `bun`. A version tag is also accepted, for example `[email protected]`, `pnpm@8`, or `bun@latest`. If not provided, version will default to `latest`.
18
16
19
17
### Example workflow:
20
18
@@ -46,13 +44,11 @@ jobs:
46
44
- name: Checkout your repository using git
47
45
uses: actions/checkout@v3
48
46
- name: Install, build, and upload your site output
49
-
uses: withastro/action@v0
47
+
uses: withastro/action@v1
50
48
# with:
51
49
# path: . # The root location of your Astro project inside the repository. (optional)
52
-
# node-version: 16 # The specific version of Node that should be used to build your site. Defaults to 16. (optional)
53
-
# package-manager: pnpm # The Node package manager that should be used to install dependencies and build your site. Automatically detected based on your lockfile. (optional)
54
-
# pnpm-version: 8.x.x # If `package-manager` is set to `pnpm`, use this specific version. Defaults to `7.x.x`. (optional)
55
-
# resolve-dep-from-path: false # If the dependency file should be resolved from the root location of your Astro project. Defaults to `true`. (optional)
50
+
# node-version: 18 # The specific version of Node that should be used to build your site. Defaults to 18. (optional)
51
+
# 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)
Copy file name to clipboardExpand all lines: action.yml
+18-26Lines changed: 18 additions & 26 deletions
Original file line number
Diff line number
Diff line change
@@ -4,27 +4,18 @@ branding:
4
4
icon: "box"
5
5
color: "orange"
6
6
inputs:
7
-
path:
8
-
description: "Path of the directory containing your site"
9
-
required: false
10
-
default: "."
11
7
node-version:
12
8
description: "The node version to use"
13
9
required: false
14
-
default: "16"
10
+
default: "18"
15
11
package-manager:
16
-
description: "If not automatically detectable, you may specify your preferred package manager"
12
+
description: "You may specify your preferred package manager (one of `npm | yarn | pnpm | bun` and an optional `@<version>` tag). Otherwise, the package manager will be automatically detected."
17
13
required: false
18
14
default: ""
19
-
pnpm-version:
20
-
description: "If package-manager is pnpm, use this specific version. Defaults to latest"
21
-
required: false
22
-
default: "7.x.x"
23
-
resolve-dep-from-path:
24
-
description: "If the dependency file is located inside the folder specified by path"
25
-
type: boolean
15
+
path:
16
+
description: "Path of the directory containing your site"
0 commit comments