From 179882638d31ae046b727a73e60554623769d687 Mon Sep 17 00:00:00 2001 From: Peter van Gulik Date: Thu, 9 May 2024 20:47:56 +0200 Subject: [PATCH] Updated config.yml --- .circleci/config.yml | 28 +++++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 64dab893..b6fe96c2 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -8,7 +8,8 @@ orbs: commands: checkout_install: steps: - - checkout + - checkout + - get_version - run: name: Install package manager command: corepack enable && corepack install @@ -27,6 +28,7 @@ commands: key: pnpm-store-{{ checksum "pnpm-lock.yaml" }} paths: - ~/.pnpm-store + test: steps: - run: pnpm jest --ci --verbose -i @@ -36,13 +38,27 @@ commands: path: coverage/sonar-report.xml - store_artifacts: path: coverage/lcov.info + codequality: steps: - run: pnpm lint -o eslint-report.json --format json || true - sonarcloud/scan + build: steps: - run: pnpm build + + pack_extension: + steps: + - run: + name: "Pack extension" + command: pnpm pack-extension $PRERELEASE + - persist_to_workspace: + root: . + paths: [ "packages/vscode-extension/*.vsix" ] + - store_artifacts: + path: packages/vscode-extension/*.vsix + get_version: steps: - run: @@ -51,6 +67,7 @@ commands: VERSION=$(node -p "require('./lerna.json').version") [[ $VERSION =~ "-" ]] && export PRERELEASE="--pre-release" echo ${PRERELEASE} + release_notes: steps: - run: @@ -78,14 +95,7 @@ jobs: steps: - checkout_install - get_version - - run: - name: "Pack extension" - command: pnpm pack-extension $PRERELEASE - - persist_to_workspace: - root: . - paths: [ "packages/vscode-extension/*.vsix" ] - - store_artifacts: - path: packages/vscode-extension/*.vsix + - pack_extension publish-vsc-extension: docker: - image: cimg/node:18.19-browsers