version: 2 refs: container: &container docker: - image: node:18 working_directory: ~/repo steps: - &Versions run: name: Versions command: node -v && npm -v && yarn -v - &Install run: name: Install Dependencies command: yarn install --pure-lockfile - &Build run: name: Build command: yarn build - &Test run: name: Test command: yarn test jobs: all: <<: *container steps: - checkout - *Versions - *Install - *Build - *Test master: <<: *container steps: - checkout - *Versions - *Install - *Build - *Test - run: name: Release command: npx semantic-release workflows: version: 2 all: jobs: - all: context: common-env-vars filters: branches: ignore: - master - next - gh-pages master: jobs: - master: context: common-env-vars filters: branches: only: master