Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removes global package.json, updates circleci to use node cli. #1234

Merged
merged 15 commits into from
Oct 27, 2020
Merged
Show file tree
Hide file tree
Changes from 12 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- run: export NODE_PATH=$(npm root --quiet -g) && node ./scripts/release-tag.js
- run: export NODE_PATH=$(npm root --quiet -g) && node ./scripts/release-tag.js

I guess this is the same as scripts/release-tag.js just want to make sure it works



assets_build:
Expand Down Expand Up @@ -410,7 +410,7 @@ workflows:
requires: [build]
triggers:
- schedule:
cron: "10 20 * * 1"
cron: "45 10 * * 2"
smurrayatwork marked this conversation as resolved.
Show resolved Hide resolved
filters:
branches:
only:
Expand Down
Loading