Skip to content

Commit

Permalink
Removes global package.json, updates circleci to use node cli. (#1234)
Browse files Browse the repository at this point in the history
* Removes global package.json, updates circleci to use node cli.

* Sets build to use a new cache key in circleci.

* Adds global node dependencies for publish scripts.

* Updates rush configuration.

* Points release scripts to globally installed packages.

* Temporary change to circleci config to test release_branch job.

* Temporary change to circleci config to test release_branch job.

* Temporary change to circleci config to test release_branch job.

* Temporary change to circleci config to test release_branch job.

* Removes testing release_branch job from circleci.

* Sets release trigger time to 10:30AM.

* Updates time to 10:45 AM for release branch.

* Update .circleci/config.yml

Co-authored-by: Minghua Sun <[email protected]>

* Updates github_tag path to script to be the same as release_branch.

Co-authored-by: Minghua Sun <[email protected]>
  • Loading branch information
smurrayatwork and clairesunstudio authored Oct 27, 2020
1 parent 88eacad commit 79b99b1
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 227 deletions.
20 changes: 10 additions & 10 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ jobs:
- restore_cache:
name: Restore pnpm-lock.yaml
keys:
- root-npm-v4-{{ checksum "common/config/rush/pnpm-lock.yaml" }}-2
- root-npm-v4-{{ checksum "common/config/rush/pnpm-lock.yaml" }}-3
- run: {name: 'Install packages', command: 'node common/scripts/install-run-rush.js install'}
- save_cache:
name: Save NPM cache
key: root-npm-v4-{{ checksum "common/config/rush/pnpm-lock.yaml" }}-2
key: root-npm-v4-{{ checksum "common/config/rush/pnpm-lock.yaml" }}-3
paths:
- common
- packages/assets/node_modules
Expand All @@ -56,7 +56,7 @@ jobs:
- restore_cache:
name: Restore NPM Cache
keys:
- root-npm-v4-{{ checksum "common/config/rush/pnpm-lock.yaml" }}-2
- root-npm-v4-{{ checksum "common/config/rush/pnpm-lock.yaml" }}-3
- run: { name: 'Build', command: 'cd packages/patternlab/styleguide && node ../../../common/scripts/install-run-rushx.js build'}
- persist_to_workspace:
root: ~/code
Expand Down Expand Up @@ -274,12 +274,12 @@ jobs:
- *no_host_check
- restore_cache:
keys:
- root-npm-v4-{{ checksum "common/config/rush/pnpm-lock.yaml" }}-2
- run: sudo npm install -g pnpm @microsoft/rush
- root-npm-v4-{{ checksum "common/config/rush/pnpm-lock.yaml" }}-3
- run: sudo npm install -g [email protected] @octokit/rest [email protected] [email protected] [email protected]
# Identify the committer i.e. CircleCI deployment bot
- run: git config --global user.email "[email protected]"
- run: git config --global user.name "CircleCI Deployment Bot"
- run: node common/scripts/install-run-rushx.js release-branch
- run: export NODE_PATH=$(npm root --quiet -g) && node scripts/release-branch.js

github_tag:
<<: *patternlab_defaults
Expand All @@ -288,12 +288,12 @@ jobs:
- *no_host_check
- restore_cache:
keys:
- root-npm-v4-{{ checksum "common/config/rush/pnpm-lock.yaml" }}-2
- run: sudo npm install -g pnpm @microsoft/rush
- root-npm-v4-{{ checksum "common/config/rush/pnpm-lock.yaml" }}-3
- run: sudo npm install -g [email protected] @octokit/rest [email protected] [email protected] [email protected]
# Identify the committer i.e. CircleCI deployment bot
- run: git config --global user.email "[email protected]"
- run: git config --global user.name "CircleCI Deployment Bot"
- run: node common/scripts/install-run-rushx.js release-tag
- run: export NODE_PATH=$(npm root --quiet -g) && node scripts/release-tag.js


assets_build:
Expand Down Expand Up @@ -410,7 +410,7 @@ workflows:
requires: [build]
triggers:
- schedule:
cron: "10 20 * * 1"
cron: "45 14 * * 2"
filters:
branches:
only:
Expand Down
Loading

0 comments on commit 79b99b1

Please sign in to comment.