Merge pull request #126 from LLK/circleci

Circleci
This commit is contained in:
Christopher Willis-Ford 2022-10-13 14:38:55 -07:00 committed by GitHub
commit 1499e0b42d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 10758 additions and 3392 deletions

26
.circleci/config.yml Normal file
View file

@ -0,0 +1,26 @@
version: 2.1
orbs:
commitlint: conventional-changelog/commitlint@1.0.0
node: circleci/node@5.0.3
alias:
- &defaults
docker:
- image: cimg/node:lts
executor: node/default
jobs:
main-job:
<<: *defaults
steps:
- checkout
- node/install-packages
- run: npm test
- run: npx semantic-release
workflows:
version: 2
commitlint:
jobs:
- commitlint/lint:
target-branch: master
main-workflow:
jobs:
- main-job

1
.husky/.gitattributes vendored Normal file
View file

@ -0,0 +1 @@
* text eol=lf

4
.husky/commit-msg Executable file
View file

@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
npx --no-install commitlint --edit "$1"

View file

@ -1,12 +0,0 @@
sudo: false
language: node_js
notifications:
email: false
node_js:
- lts/*
install: npm ci --production=false
after_success:
- npx semantic-release
branches:
except:
- /^v\d+\.\d+\.\d+$/

4
commitlint.config.js Normal file
View file

@ -0,0 +1,4 @@
module.exports = {
extends: ['@commitlint/config-conventional'],
ignores: [message => message.startsWith('chore(release):')]
};

14084
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -4,6 +4,7 @@
"description": "Shareable ESLint config for Scratch",
"main": "index.js",
"scripts": {
"prepare": "husky install",
"test": "eslint ."
},
"eslintConfig": {
@ -33,12 +34,15 @@
},
"devDependencies": {
"@babel/eslint-parser": "7.17.0",
"cz-conventional-changelog": "3.0.2",
"eslint": "8.15.0"
"@commitlint/cli": "17.1.2",
"@commitlint/config-conventional": "17.1.0",
"eslint": "8.15.0",
"husky": "8.0.1",
"scratch-semantic-release-config": "1.0.5"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
"path": "cz-conventional-changelog"
}
}
}

9
release.config.js Normal file
View file

@ -0,0 +1,9 @@
module.exports = {
extends: 'scratch-semantic-release-config',
branches: [
{
name: 'master'
// default channel
}
]
};