From 818fe92a223a735872f4f9bb1d956ef4875f4f13 Mon Sep 17 00:00:00 2001 From: Julius Recep Colliander Celik Date: Fri, 7 Apr 2023 15:53:24 +0000 Subject: [PATCH] fix: make ci work --- .circleci/config.yml | 31 +++++++++++-------------------- package-lock.json | 2 +- 2 files changed, 12 insertions(+), 21 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 2c7d310..66ced75 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,6 +1,6 @@ version: 2 jobs: - build: + lint-and-test: docker: - image: cimg/node:18.3.0 steps: @@ -8,25 +8,19 @@ jobs: - restore_cache: key: dependency-cache-{{ checksum "package-lock.json" }} - run: - name: install + name: Install Dependencies command: npm install - - save_cache: - key: dependency-cache-{{ checksum "package-lock.json" }} - paths: - - ./node_modules - test: - docker: - - image: cimg/node:18.3.0 - steps: - - checkout - - restore_cache: - key: dependency-cache-{{ checksum "package-lock.json" }} - run: name: Lint test command: npm run lint - run: name: Run tests - command: npm test + command: npm run test + - save_cache: + key: dependency-cache-{{ checksum "package-lock.json" }} + paths: + - ./node_modules + deploy: docker: - image: cimg/node:18.3.0 @@ -40,15 +34,12 @@ jobs: workflows: version: 2 - build-test-deploy: + lint-test-deploy: jobs: - - build - - test: - requires: - - build + - lint-and-test - deploy: requires: - - test + - lint-and-test filters: branches: only: diff --git a/package-lock.json b/package-lock.json index fb71266..43316e6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -40,7 +40,7 @@ "node": ">=18.13" }, "peerDependencies": { - "semantic-release": ">=11.0.0 <21.0.0" + "semantic-release": ">=11.0.0" } }, "node_modules/@babel/code-frame": {