ci: restore release workflow (#1185)
* ci: don't build our master branch * Add netlify-cli as a dev dependency * ci: trying a sheltered merge flow for promotions * ci: try building with QUICK_BUILD flag * Try using ~/repo prefix in command * ci: make sure netlify command is available * ci: use sudo for global command * Inline personal access token w/ env var * ci: workaround for sudo limitations * ci: restore release workflow
This commit is contained in:
parent
55a5f04923
commit
0797eff0b7
@ -32,8 +32,6 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
# Update yarn
|
# Update yarn
|
||||||
- run: yarn -v
|
- run: yarn -v
|
||||||
# Enable yarn workspaces
|
|
||||||
- run: yarn config set workspaces-experimental true
|
|
||||||
# Checkout code and ALL Git Tags
|
# Checkout code and ALL Git Tags
|
||||||
- checkout:
|
- checkout:
|
||||||
post:
|
post:
|
||||||
@ -193,7 +191,8 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- attach_workspace:
|
- attach_workspace:
|
||||||
at: ~/repo
|
at: ~/repo
|
||||||
- run: npx netlify deploy --prod
|
- run: cd .netlify && npm install
|
||||||
|
- run: cd .netlify && npm run deploy
|
||||||
|
|
||||||
DEPLOY_TO_PRODUCTION:
|
DEPLOY_TO_PRODUCTION:
|
||||||
docker:
|
docker:
|
||||||
@ -205,7 +204,8 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- attach_workspace:
|
- attach_workspace:
|
||||||
at: ~/repo
|
at: ~/repo
|
||||||
- run: npx netlify deploy --prod
|
- run: cd .netlify && npm install
|
||||||
|
- run: cd .netlify && npm run deploy
|
||||||
|
|
||||||
###
|
###
|
||||||
# Workflow: RELEASE
|
# Workflow: RELEASE
|
||||||
@ -213,8 +213,26 @@ jobs:
|
|||||||
NPM_PUBLISH:
|
NPM_PUBLISH:
|
||||||
<<: *defaults
|
<<: *defaults
|
||||||
steps:
|
steps:
|
||||||
- attach_workspace:
|
# Update yarn
|
||||||
at: ~/repo
|
- run: yarn -v
|
||||||
|
# Checkout code and ALL Git Tags
|
||||||
|
- checkout:
|
||||||
|
post:
|
||||||
|
- git fetch --all
|
||||||
|
- restore_cache:
|
||||||
|
name: Restore Yarn and Cypress Package Cache
|
||||||
|
keys:
|
||||||
|
# when lock file changes, use increasingly general patterns to restore cache
|
||||||
|
- yarn-packages-{{ checksum "yarn.lock" }}
|
||||||
|
- yarn-packages-
|
||||||
|
- run:
|
||||||
|
name: Install Dependencies
|
||||||
|
command: yarn install --frozen-lockfile
|
||||||
|
- save_cache:
|
||||||
|
name: Save Yarn Package Cache
|
||||||
|
paths:
|
||||||
|
- ~/.cache ## Cache yarn and Cypress
|
||||||
|
key: yarn-packages-{{ checksum "yarn.lock" }}
|
||||||
- run:
|
- run:
|
||||||
name: Avoid hosts unknown for github
|
name: Avoid hosts unknown for github
|
||||||
command:
|
command:
|
||||||
@ -428,15 +446,19 @@ workflows:
|
|||||||
- DEPLOY_TO_PRODUCTION:
|
- DEPLOY_TO_PRODUCTION:
|
||||||
requires:
|
requires:
|
||||||
- PROMOTE_TO_PRODUCTION
|
- PROMOTE_TO_PRODUCTION
|
||||||
|
|
||||||
# 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
|
||||||
# RELEASE:
|
RELEASE:
|
||||||
# jobs:
|
jobs:
|
||||||
# - NPM_PUBLISH:
|
- NPM_PUBLISH:
|
||||||
# filters:
|
filters:
|
||||||
# branches:
|
branches:
|
||||||
# only: master
|
only: master
|
||||||
# - DOCS_PUBLISH
|
- DOCS_PUBLISH:
|
||||||
# - DOCKER_MASTER_PUBLISH:
|
filters:
|
||||||
# requires:
|
branches:
|
||||||
# - NPM_PUBLISH
|
only: master
|
||||||
|
- DOCKER_MASTER_PUBLISH:
|
||||||
|
requires:
|
||||||
|
- NPM_PUBLISH
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user