Skip to content

fix: update peerDependencies version #555

fix: update peerDependencies version

fix: update peerDependencies version #555

Workflow file for this run

name: release
on:
workflow_dispatch:
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: write
pull-requests: write
defaults:
run:
shell: bash
jobs:
release-please:
if: github.actor != 'nektos/act'
runs-on: ubuntu-latest
outputs:
pr: ${{ steps.release-please.outputs.pr }}
releases_created: ${{ steps.release-please.outputs.releases_created }}
steps:
- uses: google-github-actions/release-please-action@v4
id: release-please
with:
config-file: .github/.release-please-config.json
manifest-file: .github/.release-please-manifest.json
- name: Echo release-please outputs
if: steps.release-please.outputs
run: echo '${{ toJson(steps.release-please) }}'
- name: Prepare update release notes
if: steps.release-please.outputs.release_created
uses: actions/checkout@v4
- name: Update release notes
if: steps.release-please.outputs.release_created
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RELEASE_DATA: ${{ toJson(steps.release-please.outputs) }}
run: ./.github/scripts/update_release_notes.sh
shell: bash
format:
needs: release-please
if: needs.release-please.outputs.pr
runs-on: ubuntu-latest
steps:
- name: Checkout release-please Pull Request
uses: actions/checkout@v4
with:
ref: ${{ fromJson(needs.release-please.outputs.pr).headBranchName }}
- name: Setup Node
uses: ./.github/actions/setup-node
- name: Configure Git user
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git --no-pager show --name-only
- name: Format CHANGELOG.md
run: |
npx markdownlint-cli2 --fix '**/CHANGELOG.md'
npx prettier --write '**/CHANGELOG.md'
- name: Commit and push
run: |
git add --all
git commit -m 'chore: format CHANGELOG.md' --no-verify
git push
publish:
needs: release-please
if: needs.release-please.outputs.releases_created
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: ./.github/actions/setup-node
- name: Publish
run: pnpm --recursive publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}