Skip to content

Commit

Permalink
Use npm-release-management-orb for circle builds (#98)
Browse files Browse the repository at this point in the history
* chore: use npm-release-management-orb

* Add .circleci/config.yml

Co-authored-by: SF-CLI-BOT <[email protected]>
  • Loading branch information
mdonnalley and SF-CLI-BOT authored Jun 3, 2021
1 parent 36d99b3 commit 67f1b6b
Show file tree
Hide file tree
Showing 7 changed files with 602 additions and 89 deletions.
29 changes: 29 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
version: 2.1

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

workflows:
version: 2
test-and-release:
jobs:
- release-management/test-package:
matrix:
parameters:
os:
- linux
- windows
node_version:
- latest
- lts
exclude:
- os: windows
node_version: lts
- release-management/release-package:
node_version: "14"
github-release: true
requires:
- release-management/test-package
filters:
branches:
only: master
26 changes: 0 additions & 26 deletions .github/workflows/ci.yml

This file was deleted.

1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname $0)/_/husky.sh"

yarn run commitlint --edit $1
1 change: 1 addition & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = {extends: ['@commitlint/config-conventional']}
8 changes: 8 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"tslib": "^2"
},
"devDependencies": {
"@commitlint/config-conventional": "^12.1.4",
"@oclif/dev-cli": "^1",
"@oclif/plugin-help": "^3",
"@oclif/test": "^1.2.7",
Expand All @@ -23,10 +24,12 @@
"@types/node": "^14",
"@types/semver": "^7.3.6",
"chai": "^4",
"commitlint": "^12.1.4",
"eslint": "^7",
"eslint-config-oclif": "^3.1",
"eslint-config-oclif-typescript": "^0.2",
"globby": "^11",
"husky": "6",
"mocha": "^8",
"nyc": "^15",
"ts-node": "^9",
Expand All @@ -39,6 +42,7 @@
"/lib",
"/npm-shrinkwrap.json",
"/oclif.manifest.json",
"/schemas",
"/yarn.lock"
],
"homepage": "https://github.com/oclif/plugin-command-snapshot",
Expand All @@ -52,6 +56,9 @@
"topics": {
"snapshot": {
"description": "generates and compares OCLIF plugins snapshot files"
},
"schema": {
"description": "generates and compares OCLIF plugins schema files"
}
},
"devPlugins": [
Expand All @@ -61,6 +68,7 @@
"repository": "oclif/plugin-command-snapshot",
"scripts": {
"build": "rm -rf lib && tsc -b",
"commitlint": "commitlint",
"postpack": "rm -f oclif.manifest.json",
"posttest": "eslint . --ext .ts --config .eslintrc",
"prepack": "rm -rf lib && tsc -b && oclif-dev manifest && oclif-dev readme",
Expand Down
Loading

0 comments on commit 67f1b6b

Please sign in to comment.