Skip to content
This repository has been archived by the owner on Feb 1, 2022. It is now read-only.

Commit

Permalink
fix: use npm-release-management-orb for CI (#379)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonnalley committed Jun 9, 2021
1 parent 46f1c18 commit 1d01a18
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 86 deletions.
86 changes: 26 additions & 60 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,65 +1,31 @@
---
version: 2
jobs:
node-latest: &test
docker:
- image: node:latest
working_directory: ~/cli
steps:
- checkout
- restore_cache: &restore_cache
keys:
- v1-npm-{{checksum ".circleci/config.yml"}}-{{checksum "yarn.lock"}}
- v1-npm-{{checksum ".circleci/config.yml"}}
- run:
name: Install dependencies
command: yarn
- run:
name: Run tests
command: yarn test
node-12:
<<: *test
docker:
- image: node:12
node-10:
<<: *test
docker:
- image: node:10
release:
<<: *test
steps:
- add_ssh_keys
- checkout
- restore_cache: *restore_cache
- run:
name: Install release dependencies
command: |
yarn global add @oclif/semantic-release@3 semantic-release@17
yarn --frozen-lockfile
- run:
name: Cut release
command: |
export PATH=/usr/local/share/.config/yarn/global/node_modules/.bin:$PATH
semantic-release -e @oclif/semantic-release
- save_cache:
key: v1-yarn-{{checksum ".circleci/config.yml"}}-{{checksum "yarn.lock"}}
paths:
- ~/cli/node_modules
- /usr/local/share/.cache/yarn
- /usr/local/share/.config/yarn
version: 2.1

orbs:
release-management: salesforce/npm-release-management@4

workflows:
version: 2
"cli-ux":
test-and-release:
jobs:
- node-latest
- node-12
- node-10
- release:
context: org-global
filters:
branches: {only: master}
- release-management/test-package:
matrix:
parameters:
os:
- linux
- windows
node_version:
- latest
- lts
- maintenance
exclude:
- os: windows
node_version: lts
- os: windows
node_version: maintenance
- release-management/release-package:
github-release: true
requires:
- node-latest
- node-12
- node-10
- release-management/test-package
filters:
branches:
only: master
26 changes: 0 additions & 26 deletions .github/workflows/ci.yml

This file was deleted.

0 comments on commit 1d01a18

Please sign in to comment.