chore(deps-dev): bump c8 from 10.1.2 to 10.1.3 (#353) #241
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: Release Flow | |
on: | |
push: | |
branches: [master] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
concurrency: ${{ github.workflow }}-${{ github.ref }} | |
permissions: | |
id-token: write | |
contents: write | |
pull-requests: write | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
if: ${{ github.actor != 'dependabot[bot]' }} | |
environment: | |
name: Npm | |
url: https://www.npmjs.com/package/@kitajs/html | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
# https://github.com/actions/checkout/issues/1471 | |
- name: Fetch tags | |
run: git fetch --prune --unshallow --tags | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v4 | |
- name: Setup node and restore cached dependencies | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.nvmrc' | |
cache: 'pnpm' | |
- name: Install packages | |
run: pnpm install --frozen-lockfile | |
- name: Build | |
run: pnpm build | |
- name: Link build | |
run: pnpm install --frozen-lockfile | |
- name: Create Release Pull Request or Publish | |
id: changesets | |
uses: changesets/action@v1 | |
with: | |
version: pnpm ci:version | |
commit: 'chore: update versions' | |
title: 'Release plan' | |
# https://github.com/changesets/action/issues/246 | |
# https://github.com/changesets/changesets/pull/674 | |
publish: pnpm ci:publish | |
env: | |
GITHUB_TOKEN: ${{ secrets.AUTOMERGE_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
NPM_CONFIG_PROVENANCE: true |