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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(release): switch to yarn #420

Merged
merged 2 commits into from
Nov 30, 2022
Merged
Show file tree
Hide file tree
Changes from all 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
29 changes: 14 additions & 15 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,23 @@ executors:
password: $DOCKERHUB_PASSWORD

cache-key: &cache-key
key: npm-cache-{{ arch }}-{{ checksum ".nvmrc" }}-{{ checksum "package-lock.json" }}-{{ .Branch }}
key: npm-cache-{{ arch }}-{{ checksum ".nvmrc" }}-{{ checksum "yarn.lock" }}-{{ .Branch }}

commands:
use_npm_token:
steps:
- run: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" >> ~/.npmrc

npm_install:
yarn_install:
steps:
- restore_cache: *cache-key
- run: npm i -g npm@^8
- run: node -v
- run: npm -v
- run: npm ci
- run: yarn -v
- run: yarn install --prefer-offline --pure-lockfile
- save_cache:
<<: *cache-key
paths:
- ~/.npm
- ~/.cache/yarn

jobs:
lint-and-test:
Expand All @@ -39,11 +38,11 @@ jobs:
- checkout
- vault/get-secrets:
template-preset: npm-read
- npm_install
- run: npm run build
- run: npm run lint
- run: npm run prettier:check
- run: npm run test:ci
- yarn_install
- run: yarn build
- run: yarn lint
- run: yarn prettier:check
- run: yarn test:ci
resource_class: medium+

release:
Expand All @@ -55,10 +54,10 @@ jobs:
- run: git config --global user.email $GIT_COMMITTER_EMAIL
- run: git config --global user.name $GIT_COMMITTER_NAME
- run: git remote set-url origin "https://$GIT_AUTHOR_NAME:$GITHUB_TOKEN@github.com/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME"
- npm_install
- run: npm run build
- run: npm run lerna:version
- run: npm run lerna:publish
- yarn_install
- run: yarn build
- run: yarn lerna:version
- run: yarn lerna:publish

compressed-size:
executor: default
Expand Down
1 change: 1 addition & 0 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
"npmClient": "yarn",
"useWorkspaces": true,
"version": "15.15.0",
"packages": ["packages/*"],
Expand Down
Loading