chore(build): attach to workspace (#3449)
This commit is contained in:
parent
0954fcb30a
commit
aaae33c7a2
@ -44,9 +44,7 @@ jobs:
|
|||||||
# Update yarn
|
# Update yarn
|
||||||
- run: yarn -v
|
- run: yarn -v
|
||||||
# Checkout code and ALL Git Tags
|
# Checkout code and ALL Git Tags
|
||||||
- checkout:
|
- checkout
|
||||||
post:
|
|
||||||
- git fetch --all
|
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
name: Restore Yarn and Cypress Package Cache
|
name: Restore Yarn and Cypress Package Cache
|
||||||
keys:
|
keys:
|
||||||
@ -102,10 +100,7 @@ jobs:
|
|||||||
- run: yarn config set workspaces-experimental true
|
- run: yarn config set workspaces-experimental true
|
||||||
|
|
||||||
# Checkout code and ALL Git Tags
|
# Checkout code and ALL Git Tags
|
||||||
- checkout:
|
- checkout
|
||||||
post:
|
|
||||||
- git fetch --all
|
|
||||||
|
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
name: Restore Yarn and Cypress Package Cache
|
name: Restore Yarn and Cypress Package Cache
|
||||||
keys:
|
keys:
|
||||||
@ -139,9 +134,7 @@ jobs:
|
|||||||
<<: *defaults
|
<<: *defaults
|
||||||
steps:
|
steps:
|
||||||
# Checkout code and ALL Git Tags
|
# Checkout code and ALL Git Tags
|
||||||
- checkout:
|
- checkout
|
||||||
post:
|
|
||||||
- git fetch --all
|
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
name: Restore Yarn and Cypress Package Cache
|
name: Restore Yarn and Cypress Package Cache
|
||||||
keys:
|
keys:
|
||||||
@ -247,13 +240,11 @@ jobs:
|
|||||||
NPM_PUBLISH:
|
NPM_PUBLISH:
|
||||||
<<: *defaults
|
<<: *defaults
|
||||||
steps:
|
steps:
|
||||||
- attach_workspace:
|
|
||||||
at: ~/repo
|
|
||||||
- run: yarn -v
|
- run: yarn -v
|
||||||
# Checkout code and ALL Git Tags
|
# Checkout code and ALL Git Tags
|
||||||
- checkout:
|
- checkout
|
||||||
post:
|
- attach_workspace:
|
||||||
- git fetch --all
|
at: ~/repo
|
||||||
# Use increasingly general patterns to restore cache
|
# Use increasingly general patterns to restore cache
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
name: Restore Yarn and Cypress Package Cache
|
name: Restore Yarn and Cypress Package Cache
|
||||||
@ -304,6 +295,10 @@ jobs:
|
|||||||
name: publish package dist
|
name: publish package dist
|
||||||
command: |
|
command: |
|
||||||
node ./publish-package.mjs
|
node ./publish-package.mjs
|
||||||
|
- persist_to_workspace:
|
||||||
|
root: ~/repo
|
||||||
|
paths:
|
||||||
|
- .
|
||||||
|
|
||||||
DOCKER_RELEASE_PUBLISH:
|
DOCKER_RELEASE_PUBLISH:
|
||||||
<<: *defaults
|
<<: *defaults
|
||||||
@ -449,7 +444,7 @@ workflows:
|
|||||||
- BUILD
|
- BUILD
|
||||||
- DOCKER_BETA_PUBLISH:
|
- DOCKER_BETA_PUBLISH:
|
||||||
requires:
|
requires:
|
||||||
- BUILD
|
- NPM_PUBLISH
|
||||||
|
|
||||||
# Our release branch deploys to viewer.ohif.org and is more stable and less
|
# Our release branch deploys to viewer.ohif.org and is more stable and less
|
||||||
# frequently updated after being tested in the staging environment.
|
# frequently updated after being tested in the staging environment.
|
||||||
@ -464,7 +459,7 @@ workflows:
|
|||||||
- BUILD
|
- BUILD
|
||||||
- DOCKER_RELEASE_PUBLISH:
|
- DOCKER_RELEASE_PUBLISH:
|
||||||
requires:
|
requires:
|
||||||
- BUILD
|
- NPM_PUBLISH
|
||||||
###
|
###
|
||||||
# Unit and E2E tests have already run for PR_CHECKS
|
# Unit and E2E tests have already run for PR_CHECKS
|
||||||
# Re-running should not gain us any confidence here
|
# Re-running should not gain us any confidence here
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user