Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support spaced commands (#166)
* feat: support spaced commands * fix: do not suggest hidden commands * chore: prepare for v2 * chore: update core * chore: update circle config * chore: remove github actions * chore: regenerate lock file
- Loading branch information
1 parent
d7f5ae8
commit 4222d2d
Showing
7 changed files
with
115 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,65 +1,29 @@ | ||
--- | ||
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 | ||
"@oclif/plugin-not-found": | ||
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 | ||
exclude: | ||
- os: windows | ||
node_version: lts | ||
- release-management/release-package: | ||
github-release: true | ||
tag: core-v1 | ||
requires: | ||
- node-latest | ||
- node-12 | ||
- node-10 | ||
- release-management/test-package | ||
filters: | ||
branches: | ||
only: main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters