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

ci: use lerna release commands from example repo #402

Merged
merged 1 commit into from
May 28, 2024
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
4 changes: 2 additions & 2 deletions .github/workflows/continuous-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,12 @@ jobs:
GIT_COMMITTER_NAME: "NL Design System"
run: |
git push --set-upstream origin HEAD
pnpm run release -- --yes
pnpm run release

- name: Publish to npm repository
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
pnpm config set "//registry.npmjs.org/:_authToken" "${NPM_TOKEN}"
pnpm run publish -- --no-verify-access --yes
pnpm run publish
pnpm config delete "//registry.npmjs.org/:_authToken"
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@
"lint-workspaces": "pnpm run --recursive --aggregate-output --no-bail lint",
"prepare": "husky",
"prettier": "prettier --write .",
"publish": "lerna publish from-package",
"release": "lerna version prerelease --no-changelog --no-private",
"publish": "lerna publish from-package --yes",
"release": "lerna version prerelease --conventional-prerelease --no-changelog --no-private --yes",
"update-patch": "npm-check-updates --configFileName .ncurc.patch.cjs",
"update-minor": "npm-check-updates --configFileName .ncurc.minor.cjs",
"update-major": "npm-check-updates --configFileName .ncurc.major.cjs"
Expand Down