Update release notes issue #1
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: "Update release notes issue" | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- ".changeset/**" | |
# Allow manually triggering this workflow from the web UI | |
workflow_dispatch: | |
inputs: | |
issueNumber: | |
description: 'Issue number to update' | |
default: 26 | |
required: true | |
permissions: | |
contents: write | |
jobs: | |
create-issue: | |
name: Create GitHub release | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # ratchet:actions/checkout@v3 | |
with: | |
fetch-depth: "100" # all history | |
persist-credentials: false | |
- uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # ratchet:pnpm/action-setup@v4 | |
- uses: actions/setup-node@1a4442cacd436585916779262731d5b162bc6ec7 # ratchet:actions/setup-node@v3 | |
with: | |
node-version-file: .nvmrc | |
cache: "pnpm" | |
cache-dependency-path: pnpm-lock.yaml | |
- name: Install Fluid build tools | |
continue-on-error: true | |
run: | | |
cd build-tools | |
pnpm install --frozen-lockfile | |
pnpm run build:compile | |
# We want flub available to call, so we run npm link in the build-cli package, which creates shims that are avilable on the PATH | |
# Use npm link instead of pnpm link because it handles bins better | |
cd packages/build-cli | |
npm link | |
- name: Check build-tools installation | |
run: | | |
# Info for debugging | |
which flub | |
flub --help | |
flub commands | |
- name: Generate release notes file | |
run: | | |
flub generate releaseNotes -g client -t minor --out RELEASE_NOTES.md -v | |
- name: Read release notes file | |
id: relNotes | |
uses: juliangruber/read-file-action@v1 | |
with: | |
path: ./RELEASE_NOTES.md | |
- name: Echo package.json | |
run: echo "" | |
# - name: Set issue number from push | |
# if: github.event_name == 'push' | |
# run: echo "ISSUE_NUMBER=${GITHUB_REF}" >> $GITHUB_ENV | |
# - name: Set issue number from manual input | |
# if: github.event_name == 'workflow_dispatch' | |
# run: echo "TAG_NAME=refs/tags/${{ github.event.inputs.tag }}" >> $GITHUB_ENV | |
- name: Update Issue Body | |
uses: julien-deramond/update-issue-body@v1 | |
with: | |
issue-number: 26 | |
body: ${{ steps.relNotes.outputs.content }} | |
edit-mode: replace | |
# - uses: JasonEtco/create-an-issue@v2 | |
# env: | |
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This job checks that PR template placeholder content has been removed from the PR body. |