Last active
May 25, 2022 08:05
-
-
Save cakeinpanic/eb9f663690b51983ff94e60dd69208fb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: 'version ui-components' | |
run: | | |
nx run-many --target=version --projects=ui-components,react-b2b-components,angular-b2b-components --parallel=1 | |
- name: 'git push' | |
run: | | |
git push https://${{secrets.CI_GITHUB_TOKEN}}@github.com/${GITHUB_REPOSITORY}.git ${{ env.BRANCH }} | |
git push https://${{secrets.CI_GITHUB_TOKEN}}@github.com/${GITHUB_REPOSITORY}.git --tags | |
- name: 'publish and release ui-components' | |
env: | |
GITHUB_TOKEN: ${{ secrets.CI_GITHUB_TOKEN }} | |
run: | | |
npx nx affected --target=publish-and-release --base=${{github.sha}} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"targets": { | |
"publish-and-release": { | |
"executor": "@nrwl/workspace:run-commands", | |
"options": { | |
"cwd": ".", | |
"parallel": false, | |
"commands": [ | |
"nx run ui-components:build --with-deps", | |
"nx run ui-components:publish", | |
"nx run ui-components:release" | |
] | |
} | |
}, | |
"release": { | |
"executor": "@nrwl/workspace:run-commands", | |
"options": { | |
"cwd": ".", | |
"commands": ["bash scripts/release.sh ui-components"] | |
} | |
}, | |
"version": { | |
"executor": "@jscutlery/semver:version", | |
"options": { | |
"versionTagPrefix": "${target}@" | |
} | |
}, | |
"publish": { | |
"executor": "@nrwl/workspace:run-commands", | |
"options": { | |
"cwd": ".", | |
"command": "npm publish dist/ui-components " | |
} | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment