Skip to content

Commit

Permalink
Update node version in CI pipelines (#1176)
Browse files Browse the repository at this point in the history
* Update node version

* Skip corepack integrity check

* Use separate script tasks

* Update env

* Maybe unnecessary?

* Cleanup?

* Need to use separate steps
  • Loading branch information
saskliutas authored Feb 3, 2025
1 parent 979142b commit f43e284
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .pipelines/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ pr:

variables:
- name: NodeVersion
value: 20.x
value: 22.x
- name: pnpm_config_cache
value: $(Pipeline.Workspace)/.pnpm-store

Expand Down
2 changes: 1 addition & 1 deletion .pipelines/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ variables:
- name: REPO_URL
value: github.com/iTwin/viewer-components-react
- name: NodeVersion
value: 20.x
value: 22.x
- name: pnpm_config_cache
value: $(Pipeline.Workspace)/.pnpm-store

Expand Down
7 changes: 4 additions & 3 deletions .pipelines/templates/build-steps.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@ steps:

- script: |
corepack enable
corepack prepare pnpm@9.12.3 --activate
displayName: "Setup pnpm"
displayName: "Enable corepack"
- script: |
pnpm config set store-dir $(pnpm_config_cache)
displayName: "Setup pnpm config"
displayName: "Setup pnpm"
env:
COREPACK_INTEGRITY_KEYS: 0
- script: pnpm install --frozen-lockfile
displayName: pnpm install
Expand Down
6 changes: 5 additions & 1 deletion .pipelines/templates/change-files-steps.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,13 @@ steps:

- script: |
corepack enable
corepack prepare pnpm@9.12.3 --activate
displayName: "Enable corepack"
- script: |
pnpm config set store-dir $(pnpm_config_cache)
displayName: "Setup pnpm"
env:
COREPACK_INTEGRITY_KEYS: 0
- script: pnpm install
displayName: pnpm install
Expand Down
7 changes: 4 additions & 3 deletions .pipelines/templates/validate-docs-steps.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@ steps:

- script: |
corepack enable
corepack prepare pnpm@9.12.3 --activate
displayName: "Setup pnpm"
displayName: "Enable corepack"
- script: |
pnpm config set store-dir $(pnpm_config_cache)
displayName: "Setup pnpm config"
displayName: "Setup pnpm"
env:
COREPACK_INTEGRITY_KEYS: 0
- script: pnpm install --frozen-lockfile
displayName: pnpm install
Expand Down

0 comments on commit f43e284

Please sign in to comment.