Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 22 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -478,15 +478,15 @@ test:

### GitLab Inputs

| Input | Description | Default |
| ------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- |
| `version` | Version of Vite+ to install | `latest` |
| `working-directory` | Project directory used for relative paths and default `vp install` execution | `.` |
| `run-install` | String input for `vp install` after setup. Use `"true"`/`"false"` or a YAML object/list with `cwd`/`args` | `true` |
| `sfw` | Wrap `vp install` with [Socket Firewall Free](https://docs.socket.dev/docs/socket-firewall-free) | `false` |
| `registry-url` | Optional registry URL to write to a temporary `.npmrc` | |
| `scope` | Optional scope for authenticating against scoped registries | |
| `setup-ref` | setup-vp ref used to download the GitLab bootstrap and compiled runtime. Always set it to the same tag as the remote URL; the default `v1` is frozen at v1.15.0 | `v1` |
| Input | Description | Default |
| ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------- |
| `version` | Version of Vite+ to install | `latest` |
| `working-directory` | Project directory used for relative paths and default `vp install` execution | `.` |
| `run-install` | String input for `vp install` after setup. Use `"true"`/`"false"` or a YAML object/list with `cwd`/`args` | `true` |
| `sfw` | Wrap `vp install` with [Socket Firewall Free](https://docs.socket.dev/docs/socket-firewall-free) | `false` |
| `registry-url` | Optional registry URL to write to a temporary `.npmrc` | |
| `scope` | Optional scope for authenticating against scoped registries | |
| `setup-ref` | setup-vp ref used to download the GitLab bootstrap and compiled runtime. Always set it to the same tag as the remote URL; the default is the latest release when the template was published | `v1.16.0` |

### GitLab Notes

Expand Down Expand Up @@ -538,18 +538,18 @@ Pin `ref` and `setupRef` to the same exact tag or commit SHA. Do not use the `v1

### Azure Parameters

| Parameter | Default | Description |
| --------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------- |
| `version` | `latest` | Vite+ version/dist-tag passed to the official installer. |
| `workingDirectory` | `.` | Project directory for lock detection and default `vp install`. |
| `runInstall` | `true` | Run `vp install`; accepts boolean or object/list with `cwd` and `args`. |
| `sfw` | `false` | Wrap `vp install` with Socket Firewall Free. |
| `registryUrl` | | Optional registry URL for a temporary `.npmrc`. |
| `scope` | | Optional npm registry scope. |
| `setupRef` | `v1` | Ref used to download bootstrap scripts and `dist/azure/index.mjs`. Always set it to the same tag as `ref`; the default `v1` is frozen at v1.15.0. |
| `nodeVersion` | `24.x` | Passed to `UseNode@1`; an empty string skips Node setup. |
| `cache` | `false` | Enable Azure `Cache@2` around the package-manager cache directory. |
| `cacheDependencyPath` | | Explicit lock file relative to `workingDirectory`; otherwise auto-detect. |
| Parameter | Default | Description |
| --------------------- | --------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `version` | `latest` | Vite+ version/dist-tag passed to the official installer. |
| `workingDirectory` | `.` | Project directory for lock detection and default `vp install`. |
| `runInstall` | `true` | Run `vp install`; accepts boolean or object/list with `cwd` and `args`. |
| `sfw` | `false` | Wrap `vp install` with Socket Firewall Free. |
| `registryUrl` | | Optional registry URL for a temporary `.npmrc`. |
| `scope` | | Optional npm registry scope. |
| `setupRef` | `v1.16.0` | Ref used to download bootstrap scripts and `dist/azure/index.mjs`. Always set it to the same tag as `ref`; the default is the latest release when the template was published. |
| `nodeVersion` | `24.x` | Passed to `UseNode@1`; an empty string skips Node setup. |
| `cache` | `false` | Enable Azure `Cache@2` around the package-manager cache directory. |
| `cacheDependencyPath` | | Explicit lock file relative to `workingDirectory`; otherwise auto-detect. |

### Azure Job Variables

Expand Down Expand Up @@ -632,7 +632,7 @@ Releases are published as git tags; there is no npm package, but the `package.js

To cut a release:

1. Open and merge a PR that bumps the `version` in `package.json` and the version tag in the README examples to the upcoming release.
1. Open and merge a PR that bumps the upcoming version in `package.json`, the README examples, and the `setup-ref` / `setupRef` defaults in `gitlab/setup-vp.yml` and `azure/setup-vp.yml` (with the matching assertion in `src/azure/template.test.ts`).

2. Update `main` and confirm `dist/index.mjs` is in sync (the working tree must stay clean after building):

Expand Down
2 changes: 1 addition & 1 deletion azure/setup-vp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ parameters:
default: ""
- name: setupRef
type: string
default: v1
default: v1.16.0
- name: nodeVersion
type: string
default: 24.x
Expand Down
6 changes: 3 additions & 3 deletions gitlab/setup-vp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ spec:
description: "Optional scope for authenticating against scoped registries."
default: ""
setup-ref:
description: "setup-vp ref used to download the GitLab bootstrap and compiled runtime. Pin this to the same tag or commit as the remote template for strict reproducibility."
default: "v1"
description: "setup-vp ref used to download the GitLab bootstrap and compiled runtime. Pin this to the same tag or commit as the remote template; the default is the latest release when this template was published."
default: "v1.16.0"
---
.setup-vp-bootstrap:
before_script:
Expand All @@ -48,7 +48,7 @@ spec:
export SETUP_VP_SFW="${SETUP_VP_SFW:-false}"
export SETUP_VP_REGISTRY_URL="${SETUP_VP_REGISTRY_URL:-}"
export SETUP_VP_SCOPE="${SETUP_VP_SCOPE:-}"
export SETUP_VP_SETUP_REF="${SETUP_VP_SETUP_REF:-v1}"
export SETUP_VP_SETUP_REF="${SETUP_VP_SETUP_REF:-v1.16.0}"

setup_vp_bootstrap_tmp="$(mktemp "${TMPDIR:-/tmp}/setup-vp-gitlab-bootstrap.XXXXXX")"
setup_vp_env_tmp="$(mktemp "${TMPDIR:-/tmp}/setup-vp-gitlab-env.XXXXXX")"
Expand Down
2 changes: 1 addition & 1 deletion src/azure/template.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ describe("azure/setup-vp.yml", () => {
expect(byName.sfw).toMatchObject({ type: "boolean", default: false });
expect(byName.registryUrl).toMatchObject({ type: "string", default: "" });
expect(byName.scope).toMatchObject({ type: "string", default: "" });
expect(byName.setupRef).toMatchObject({ type: "string", default: "v1" });
expect(byName.setupRef).toMatchObject({ type: "string", default: "v1.16.0" });
expect(byName.nodeVersion).toMatchObject({ type: "string", default: "24.x" });
expect(byName.cache).toMatchObject({ type: "boolean", default: false });
expect(byName.cacheDependencyPath).toMatchObject({ type: "string", default: "" });
Expand Down
Loading