chore(deps): update dependency @swc/core to v1.12.9 (#382) #376
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 & Publish | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
job: | |
# Ignore the heap-code bot commits and devDependencies | |
if: ${{ github.actor != vars.HC_BOT && !(github.actor == 'renovate[bot]' && contains(github.event.head_commit.message, 'chore(deps):')) }} | |
runs-on: ubuntu-latest | |
env: | |
GITHUB_TOKEN: ${{ secrets.HC_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
token: ${{ secrets.HC_TOKEN }} | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 22.x | |
cache: "npm" | |
- name: Install packages | |
run: npm ci | |
- name: Generate code coverage summary | |
run: npm run test:coverage -- --ci --coverageReporters json-summary | |
- name: Generating coverage badges | |
uses: jpb06/jest-badges-action@latest | |
with: | |
coverage-summary-path: ./coverage/coverage-summary.json | |
no-commit: true | |
output-folder: ./.badges/code/ | |
- name: Set default code coverage badge | |
run: cp .badges/code/coverage-jest\ coverage.svg .badges/code/coverage.svg | |
- name: Set git config | |
run: | | |
git config user.name "heap-code[bot]" | |
git config user.email "${{ vars.HC_BOT }}@users.noreply.github.com" | |
- name: Add badges | |
run: git add .badges/ | |
# NPM pre-publish | |
- name: Clean for build | |
run: rm -rf dist/ | |
- name: Build | |
run: npm run build | |
- name: Set npm config | |
run: npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN | |
- name: Release and publish | |
run: npx release-it --ci --no-git.requireCleanWorkingDir |