Skip to content

Commit

Permalink
ci: add temp CCI config for transition
Browse files Browse the repository at this point in the history
  • Loading branch information
ze-flo committed Jun 13, 2024
1 parent b7d41bb commit d865963
Showing 1 changed file with 4 additions and 62 deletions.
66 changes: 4 additions & 62 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,73 +2,15 @@ version: 2.1
orbs:
node: circleci/[email protected]

references:
executor: &executor
jobs:
check:
executor:
name: node/default
tag: lts

workspace_root: &workspace_root ~/project

attach_workspace: &attach_workspace
attach_workspace:
at: *workspace_root

persist_to_workspace: &persist_to_workspace
persist_to_workspace:
root: *workspace_root
paths: .

jobs:
build:
<<: *executor
steps:
- checkout
- node/install-packages:
override-ci-command: npm ci --ignore-scripts
cache-version: '{{ .Environment.CACHE_VERSION }}'
- run: npm exec -- lerna run build --concurrency=2 # prevent out-of-memory
- *persist_to_workspace

test:
<<: *executor
steps:
- *attach_workspace
- run: npm run test:ci -- --runInBand
- run: '[ $COVERALLS_REPO_TOKEN ] && npm exec -- coveralls < .cache/coverage/lcov.info || true'
- *persist_to_workspace

deploy:
<<: *executor
environment:
NODE_DEBUG: gh-pages
steps:
- *attach_workspace
- run: npm run build:demo
- run: utils/scripts/deploy.mjs

publish:
<<: *executor
steps:
- *attach_workspace
- run: npm set //registry.npmjs.org/:_authToken=$NPM_TOKEN
- run: npm exec -- lerna publish from-git --ignore-scripts --yes
- run: echo "PASSED"

workflows:
main:
jobs:
- build
- test:
requires:
- build
- deploy:
requires:
- test
context: writer
- publish:
requires:
- test
context: maintainer
filters:
branches:
only: main
- check

0 comments on commit d865963

Please sign in to comment.