Skip to content

chore(deps): update codecov/codecov-action action to v6 #202

chore(deps): update codecov/codecov-action action to v6

chore(deps): update codecov/codecov-action action to v6 #202

Workflow file for this run

name: Build and Publish
on:
push:
branches:
- main
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions:
id-token: write # Required for OIDC
contents: write # Required for release-please to create branches and PRs
pull-requests: write # Required for release-please to create pull requests
jobs:
release-please:
runs-on: ubuntu-latest
outputs:
release_created: ${{ steps.release.outputs.release_created }}
tag_name: ${{ steps.release.outputs.tag_name }}
body: ${{ steps.release.outputs.body }}
steps:
- uses: googleapis/release-please-action@v4
if: github.ref == 'refs/heads/main'
id: release
with:
release-type: node
build:
runs-on: ubuntu-latest
needs: [release-please]
steps:
- uses: actions/checkout@v6
with:
submodules: recursive
- name: Set Node.js
uses: actions/setup-node@v6
with:
node-version-file: ".nvmrc"
- name: Update npm
run: npm install -g npm@latest
- name: Install pnpm
uses: pnpm/action-setup@v5
with:
run_install: false
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v5
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('package.json') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: pnpm install
run: pnpm install --frozen-lockfile
- name: Build
run: pnpm run build
- name: test
run: pnpm run test:coverage
- name: Upload all coverage reports to Codecov
uses: codecov/codecov-action@v6
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage/coverage-final.json
fail_ci_if_error: false
- name: Publish to NPM
if: ${{ needs.release-please.outputs.release_created }}
run: pnpm publish
- name: Send Discord notification
if: ${{ needs.release-please.outputs.release_created }}
uses: Ilshidur/action-discord@0.4.0
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
with:
args: |
📚 Shared Callback Library ${{ needs.release-please.outputs.tag_name }} created!
**Changelog:**
${{ needs.release-please.outputs.body }}