Skip to content

Add chronus for changelog managment and setup publish to npm #5

Add chronus for changelog managment and setup publish to npm

Add chronus for changelog managment and setup publish to npm #5

Workflow file for this run

name: Check Changes
on:
pull_request:
branches:
- main
permissions:
pull-requests: write
jobs:
changes:
if: ${{ github.actor != 'dependabot[bot]' && !startsWith(github.head_ref, 'publish/') }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 ## Needed for changelog
- uses: ./.github/actions/setup
- uses: pnpm/action-setup@v3
name: Install pnpm
- run: pnpm install
name: Install dependencies
- name: Create PR Comment
run: pnpm chronus-github get-pr-comment --out ./comment-out/comment.json
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- uses: actions/upload-artifact@v4
with:
name: comment
path: comment-out/
retention-days: 1 # Only need for the next workflow so don't need to waste storageretention-days
- run: pnpm chronus verify
name: Verify changes