Skip to content

Instantly share code, notes, and snippets.

@cakeinpanic
Last active May 25, 2022 08:05
Show Gist options
  • Save cakeinpanic/eb9f663690b51983ff94e60dd69208fb to your computer and use it in GitHub Desktop.
Save cakeinpanic/eb9f663690b51983ff94e60dd69208fb to your computer and use it in GitHub Desktop.
- 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}}
"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