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

build(ci): set npm token for the release job #425

Merged
merged 1 commit into from Dec 1, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 2 additions & 6 deletions .circleci/config.yml
Expand Up @@ -54,15 +54,11 @@ 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"
- use_npm_token
- yarn_install
- run: yarn build
- run: yarn lerna:version
# `lerna publish` fails with 404 for some reason but as far as we are concerned
# `npm publish` does the same thing since all the versioning, changelog generation
# GitHub releases happen in the `lerna version` command.
# Using `npx` instead of `yarn` due to an issue with yarn not reading the token
# from .npmrc
- run: npx lerna exec -- npm publish
- run: yarn lerna publish from-git --yes

compressed-size:
executor: default
Expand Down