mirror of
https://github.com/scratchfoundation/scratch-audio.git
synced 2025-01-09 14:22:53 -05:00
parent
ac0f98c431
commit
a6d400dddb
1 changed files with 27 additions and 10 deletions
|
@ -7,9 +7,20 @@ aliases:
|
||||||
- master
|
- master
|
||||||
- develop
|
- develop
|
||||||
- /^hotfix\//
|
- /^hotfix\//
|
||||||
- &node-version 16.18.1 # Consider switching to lts when scratch-audio supports that version
|
|
||||||
|
executors:
|
||||||
|
default-executor:
|
||||||
|
docker:
|
||||||
|
- image: cimg/node:16.18.1 # Consider switching to LTS when scratch-audio supports that version
|
||||||
|
working_directory: ~/project
|
||||||
|
resource_class: medium
|
||||||
|
|
||||||
commands:
|
commands:
|
||||||
|
test:
|
||||||
|
steps:
|
||||||
|
- run:
|
||||||
|
name: Test
|
||||||
|
command: npm run test
|
||||||
setup_deploy:
|
setup_deploy:
|
||||||
steps:
|
steps:
|
||||||
- run:
|
- run:
|
||||||
|
@ -42,28 +53,34 @@ commands:
|
||||||
if npm info | grep -q $RELEASE_VERSION; then git tag $RELEASE_VERSION && git push https://${GH_TOKEN}@github.com/${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}.git $RELEASE_VERSION; fi
|
if npm info | grep -q $RELEASE_VERSION; then git tag $RELEASE_VERSION && git push https://${GH_TOKEN}@github.com/${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}.git $RELEASE_VERSION; fi
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
build-and-test:
|
||||||
executor:
|
executor: default-executor
|
||||||
name: node/default
|
|
||||||
tag: *node-version
|
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- node/install-packages
|
- node/install-packages
|
||||||
|
- test
|
||||||
|
- persist_to_workspace:
|
||||||
|
root: ~/project
|
||||||
|
paths:
|
||||||
|
- .
|
||||||
|
deploy:
|
||||||
|
executor: default-executor
|
||||||
|
steps:
|
||||||
|
- attach_workspace:
|
||||||
|
at: ~/project
|
||||||
- setup_deploy
|
- setup_deploy
|
||||||
- deploy
|
- deploy
|
||||||
|
|
||||||
workflows:
|
workflows:
|
||||||
build-and-test-workflow:
|
build-and-test-workflow:
|
||||||
jobs:
|
jobs:
|
||||||
- node/test:
|
- build-and-test:
|
||||||
version: *node-version
|
|
||||||
filters:
|
filters:
|
||||||
branches:
|
branches:
|
||||||
ignore: *release-branches
|
ignore: *release-branches
|
||||||
deploy-workflow:
|
deploy-workflow:
|
||||||
jobs:
|
jobs:
|
||||||
- node/test:
|
- build-and-test:
|
||||||
version: *node-version
|
|
||||||
filters:
|
filters:
|
||||||
branches:
|
branches:
|
||||||
only: *release-branches
|
only: *release-branches
|
||||||
|
@ -71,4 +88,4 @@ workflows:
|
||||||
context:
|
context:
|
||||||
- scratch-npm-creds
|
- scratch-npm-creds
|
||||||
requires:
|
requires:
|
||||||
- node/test
|
- build-and-test
|
||||||
|
|
Loading…
Reference in a new issue