Release 6.2.3 (part 2) #176
Workflow file for this run
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: | ||
| release: | ||
| types: [published] | ||
| push: | ||
| tags: | ||
| - 'v*' # Triggers for tags starting with 'v', such as v1.0 | ||
| jobs: | ||
| release_to_npm: | ||
| name: Release to npm | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| content: read | ||
| id-token: write | ||
| steps: | ||
| - uses: actions/checkout@v6 | ||
| - name: Use Node.js 24.x | ||
| uses: actions/setup-node@v6 | ||
| with: | ||
| node-version: 24.x | ||
| cache: 'npm' | ||
| cache-dependency-path: 'package-lock.json' | ||
| - run: npm i -g npm@9 | ||
| - run: npm ci | ||
| - run: npm run build-serial | ||
| env: | ||
| NODE_OPTIONS: --max_old_space_size=4096 | ||
| - run: npm test | ||
| - run: npm run lint | ||
| - name: Determine npm tag based on release version | ||
| id: get_npm_tag | ||
| run: | | ||
| TAG_NAME="${{ github.ref_name }}" | ||
| NPM_TAG_VALUE="latest" # Default tag | ||
| if [[ "$TAG_NAME" == *alpha* || "$TAG_NAME" == *beta* || "$TAG_NAME" == *pre* ]]; then | ||
| NPM_TAG_VALUE="next" | ||
| fi | ||
| echo "NPM_TAG=${NPM_TAG_VALUE}" >> $GITHUB_ENV | ||
| echo "Determined NPM_TAG: ${NPM_TAG_VALUE}" | ||
| - run: npx nx release publish --tag=$NPM_TAG --provenance | ||