-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: use pnpm, test against latest node LTS
Signed-off-by: Pascal Sthamer <10992664+P4sca1@users.noreply.github.com>
- Loading branch information
Showing
2 changed files
with
59 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,40 @@ | ||
version: 2.1 | ||
|
||
orbs: | ||
node: circleci/node@5.0.3 | ||
node: circleci/node@5.2.0 | ||
|
||
jobs: | ||
release: | ||
docker: | ||
- image: cimg/node:18.15 | ||
- image: cimg/node:20.11 | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
name: Restore pnpm Package Cache | ||
keys: | ||
- pnpm-packages-{{ checksum "pnpm-lock.yaml" }} | ||
- run: | ||
name: Install Dependencies | ||
command: yarn install | ||
- run: yarn semantic-release | ||
command: pnpm install | ||
- save_cache: | ||
name: Save pnpm Package Cache | ||
key: pnpm-packages-{{ checksum "pnpm-lock.yaml" }} | ||
paths: | ||
- .pnpm-store | ||
- run: | ||
name: Release | ||
command: pnpm run semantic-release | ||
|
||
workflows: | ||
test_and_release: | ||
jobs: | ||
- node/test: | ||
pkg-manager: yarn | ||
override-ci-command: yarn install --immutable | ||
run-command: test:run | ||
override-ci-command: pnpm run test:run | ||
matrix: | ||
parameters: | ||
version: | ||
- "16.19" | ||
- "18.15" | ||
- '18.19' | ||
- '20.11' | ||
- release: | ||
requires: | ||
- node/test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters