Skip to content

Commit

Permalink
fix(release): switch to yarn (#420)
Browse files Browse the repository at this point in the history
  • Loading branch information
z0al committed Nov 30, 2022
1 parent 821815c commit 0e53501
Show file tree
Hide file tree
Showing 12 changed files with 9,015 additions and 46,407 deletions.
29 changes: 14 additions & 15 deletions .circleci/config.yml
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
@@ -1,5 +1,6 @@
{
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
"npmClient": "yarn",
"useWorkspaces": true,
"version": "15.15.0",
"packages": ["packages/*"],
Expand Down

0 comments on commit 0e53501

Please sign in to comment.