Skip to content
This repository has been archived by the owner on Jan 29, 2023. It is now read-only.

chore: publish using orb #81

Merged
merged 1 commit into from
Jan 27, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 23 additions & 11 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
version: 2
version: 2.1
orbs:
release-management: salesforce/npm-release-management@4
jobs:
lint: &lint
docker:
Expand Down Expand Up @@ -47,30 +49,40 @@ jobs:
paths:
- /usr/local/share/.cache/yarn
- /usr/local/share/.config/yarn
release:
<<: *lint
steps:
- add_ssh_keys
- checkout
- attach_workspace: {at: node_modules}
- run: .circleci/setup_git
- run: .circleci/release

workflows:
version: 2
oclif:
jobs:
- lint
- lint:
filters:
branches:
ignore: main
- node-latest-plugins-generate: {requires: [lint] }

release:
jobs:
- lint:
filters:
branches:
only: main
- node-latest-plugins-generate:
requires:
- lint
- release-management/release-package:
sign: true
github-release: true
requires:
- node-latest-plugins-generate

nightly:
triggers:
- schedule:
cron: "0 11 * * *"
filters:
branches:
only:
- master
- main
jobs:
- lint
- node-latest-plugins-generate: {requires: [lint] }
Expand Down
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']}
11 changes: 9 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"devDependencies": {
"@oclif/dev-cli": "^1.21.0",
"@oclif/tslint": "^3.1.1",
"@salesforce/dev-scripts": "^0.6.2",
"@types/lodash": "^4.14.121",
"@types/read-pkg": "^3.0.0",
"@types/shelljs": "^0.8.3",
Expand Down Expand Up @@ -84,7 +85,13 @@
"prepack": "rm -rf lib && tsc && oclif-dev manifest",
"version": "oclif-dev readme && git add README.md",
"test": "nps test",
"prepare": "rm -f .oclif.manifest.json && yarn run prepack"
"prepare": "rm -f .oclif.manifest.json && yarn run prepack",
"build": "yarn prepack"
},
"types": "lib/index.d.ts"
"types": "lib/index.d.ts",
"husky": {
"hooks": {
"commit-msg": "sf-husky-commit-msg"
}
}
}
Loading