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: add build step to publish workflow #4033

Merged
merged 1 commit into from
Sep 18, 2023
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
11 changes: 10 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,15 @@ jobs:
git config user.name "mainframev"
git config user.email "[email protected]"

- name: Build
run: |
# we need to build packages in the right order
# lerna won't run build due to --ignore-prepublish flag
yarn tokens build
yarn tailwind-preset build
yarn components build
yarn workspace @kiwicom/eslint-plugin-orbit-components build

- name: Dry run
if: ${{ github.event.inputs.dryrun == 'true' }}
run: |
Expand All @@ -46,7 +55,7 @@ jobs:
echo "access=public" >> ~/.npmrc
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
echo "//registry.npmjs.org/:always-auth=true" >> ~/.npmrc
yarn lerna publish --no-private --conventional-commits --create-release github --yes
yarn lerna publish --no-private --conventional-commits --create-release github --ignore-prepublish --yes
yarn docs changelog
git add docs/src/data/log.md && git commit -m "docs: update changelog" && git push
yarn zx scripts/post-changelog.mjs
1 change: 1 addition & 0 deletions packages/orbit-tailwind-preset/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
],
"scripts": {
"build": "yarn tsup",
"prepublishOnly": "yarn build",
"pretest": "yarn workspace @kiwicom/orbit-design-tokens build && yarn build && yarn tailwindcss -o style.css",
"test": "jest"
},
Expand Down