Skip to content

Commit

Permalink
more config.yml tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
nprimak committed Mar 25, 2024
1 parent ccfbd98 commit 185f0ca
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
# Ruby CircleCI 2.0 configuration file
# Check https://circleci.com/docs/2.0/language-ruby/ for more details
version: 2
jobs:
build:
docker:
# Specify the Ruby version you desire here
- image: cimg/ruby:3.1-node

commands:
node-install:
working_directory: ~/identity-dev-docs
steps:
- checkout

- run:
name: Switch Node.js version
command: |
Expand All @@ -13,21 +19,11 @@ commands:
. "$NVM_DIR/nvm.sh" --install --latest-npm
echo 'export NVM_DIR="$HOME/.nvm"' >> $BASH_ENV;
echo '[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"' >> $BASH_ENV;
- run:
name: Print Node.js version
command: node -v

jobs:
build:
docker:
# Specify the Ruby version you desire here
- image: cimg/ruby:3.1-node

working_directory: ~/identity-dev-docs
steps:
- checkout
- node-install

- restore_cache:
key: v2-identity-dev-docs-{{ checksum "package-lock.json" }}-{{ checksum "Gemfile.lock" }}

Expand Down

0 comments on commit 185f0ca

Please sign in to comment.