This repository was archived by the owner on Apr 24, 2025. It is now read-only.
Merge pull request #34 from Rezonate-io/fix-deploy #40
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: npm run version | |
| run: npm run version | |
| - name: npm run build | |
| run: npm run build | |
| - name: npm run publish | |
| run: | | |
| echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc | |
| npm run publish | |
| env: | |
| NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |