name: "Merge to master" on: push: branches: [master] jobs: build: runs-on: ubuntu-latest steps: - name: Get branch name shell: bash run: echo "BRANCH_NAME=$(echo ${GITHUB_REF#refs/heads/} | tr / -)" >> $GITHUB_ENV - uses: actions/checkout@v4 - name: Set up pnpm uses: pnpm/action-setup@v4 # tsdown requires Node ^22.18.0 || >=24.11.0. The published artifacts are # still ES5 — see the `pack-smoke` job in pull-request.yml. - name: Set up node uses: actions/setup-node@v4 with: node-version: "24" cache: pnpm - run: pnpm install --frozen-lockfile - run: pnpm build # `pnpm test` already runs ava under nyc; this only reports the result. - run: pnpm test && pnpm exec nyc report --reporter=text-lcov | pnpm exec coveralls env: COVERALLS_SERVICE_NAME: GithubActions COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} COVERALLS_GIT_BRANCH: ${{ env.BRANCH_NAME }}