chore: ensure we get the remote branch for getLastTag (#4563) #2723
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: Master Robot | |
on: | |
push: | |
branches: | |
- master | |
- 'prerelease/**' | |
jobs: | |
prerelease: | |
timeout-minutes: 40 | |
name: Pre-release | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
runs-on: ubuntu-latest | |
environment: 'Prerelease' | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4 | |
with: | |
registry-url: 'https://registry.npmjs.org' | |
node-version-file: '.nvmrc' | |
- name: Install npm | |
run: npm i -g npm@10 | |
shell: bash | |
- run: npm ci | |
shell: bash | |
- name: Release | |
run: | | |
npm run nx:graph | |
npm run release:phase1 | |
npm run release:phase2 | |
env: | |
DEBUG: '*' | |
IS_PRERELEASE: 'true' |