This repository was archived by the owner on Apr 24, 2025. It is now read-only.
Merge pull request #32 from Rezonate-io/fix-all #37
This file contains hidden or 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: Release | |
| on: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| with: | |
| fetch-depth: 0 | |
| - name: Cache node modules | |
| id: cache | |
| uses: actions/cache@v2 | |
| with: | |
| path: | | |
| **/node_modules | |
| key: ${{ env.DEPENDENCIES_CACHE }}-${{ hashFiles('package-lock.json') }} | |
| - name: Install dependencies | |
| if: steps.cache.outputs.cache-hit != 'true' | |
| run: npm i | |
| - name: GIT config | |
| run: | | |
| git config user.name "${GITHUB_ACTOR}" | |
| git config user.email "${GITHUB_ACTOR}@users.noreply.github.com" | |
| - uses: nrwl/nx-set-shas@v4 | |
| - name: nx workspace:version | |
| run: npx nx run workspace:version | |
| - name: nx affected:build | |
| run: npx nx affected -t build | |
| - name: nx affected:publish | |
| run: | | |
| echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc | |
| npx nx run-many -t publish --all --base origin/master | |
| env: | |
| NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |