mirror of
https://github.com/scratchfoundation/scratch-semantic-release-config.git
synced 2024-11-27 01:45:50 -05:00
ci: add CircleCI config
This commit is contained in:
parent
65fcf2826c
commit
c65a2acf10
3 changed files with 43 additions and 0 deletions
38
.circleci/config.yml
Normal file
38
.circleci/config.yml
Normal file
|
@ -0,0 +1,38 @@
|
|||
version: 2.1
|
||||
orbs:
|
||||
node: circleci/node@5.0.2
|
||||
alias:
|
||||
- &defaults
|
||||
docker:
|
||||
- image: cimg/node:lts
|
||||
executor: node/default
|
||||
jobs:
|
||||
branch-job:
|
||||
<<: *defaults
|
||||
steps:
|
||||
- checkout
|
||||
- node/install-packages
|
||||
- run: npm test
|
||||
main-job:
|
||||
<<: *defaults
|
||||
steps:
|
||||
- checkout
|
||||
- node/install-packages
|
||||
- run: npm test
|
||||
- run: semantic-release
|
||||
workflows:
|
||||
version: 2
|
||||
branch-workflow:
|
||||
jobs:
|
||||
- branch-job:
|
||||
filters:
|
||||
branches:
|
||||
ignore:
|
||||
- main
|
||||
main-workflow:
|
||||
jobs:
|
||||
- main-job:
|
||||
filters:
|
||||
branches:
|
||||
only:
|
||||
- main
|
|
@ -10,5 +10,9 @@ trim_trailing_whitespace = true
|
|||
[*.{js,json}]
|
||||
indent_style = space
|
||||
|
||||
[*.{yml,yaml}]
|
||||
indent_size = 2
|
||||
indent_style = space
|
||||
|
||||
[{package.json,package-lock.json}]
|
||||
indent_size = 2
|
||||
|
|
1
.gitattributes
vendored
1
.gitattributes
vendored
|
@ -10,6 +10,7 @@
|
|||
*.js text eol=lf
|
||||
*.json text eol=lf
|
||||
*.md text eol=lf
|
||||
*.yml text eol=lf
|
||||
|
||||
# Prefer LF for these files
|
||||
.editorconfig text eol=lf
|
||||
|
|
Loading…
Reference in a new issue