Skip to content

Commit

Permalink
Merge pull request #1672 from g59/fix/release
Browse files Browse the repository at this point in the history
fix: generate release note comment
  • Loading branch information
9renpoto authored Sep 7, 2023
2 parents b44f7e8 + ef76114 commit b729d56
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/actionlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: actionlint
on:
pull_request:
paths:
- '.github/actions/**'
- '.github/workflows/**'
- ".github/actions/**"
- ".github/workflows/**"

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/bump-schedules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Bump version (cron)

on:
schedule:
- cron: '15 3 * * TUE'
- cron: "15 3 * * TUE"

jobs:
scheduled_bump:
Expand Down
22 changes: 12 additions & 10 deletions .github/workflows/bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ on:
workflow_dispatch:
inputs:
semver:
description: 'Which SemVer'
description: "Which SemVer"
required: true
default: 'patch'
default: "patch"
type: choice
options:
- major
Expand Down Expand Up @@ -44,14 +44,16 @@ jobs:
{
owner: context.repo.owner,
repo: context.repo.repo,
tag_name: process.env.NEW_VERSION,
tag_name: `v${process.env.NEW_VERSION}`,
}
);
return notes.data.body;
- name: generate title
run: echo "v${{ steps.get_version.outputs.NEW_VERSION }} ($(date '+%Y-%m-%d'))" > new
- run: echo "${{ steps.get_release_note.outputs.result }}" >> new
- run: |
cat << EOF >> new
## v${{ steps.get_version.outputs.NEW_VERSION }} ($(date '+%Y-%m-%d'))
${{ steps.get_release_note.outputs.result }}
EOF
- run: cat new ./CHANGELOG.md > temp
- run: mv temp ./CHANGELOG.md
- run: rm new
Expand All @@ -60,10 +62,10 @@ jobs:
uses: peter-evans/create-pull-request@v5.0.2
with:
base: main
branch: release
branch: release-${{ steps.get_version.outputs.NEW_VERSION }}
token: ${{secrets.GITHUB_TOKEN}}
commit-message: 'bump: v${{ steps.get_version.outputs.NEW_VERSION }}'
commit-message: "bump: v${{ steps.get_version.outputs.NEW_VERSION }}"
body: ${{ steps.get_release_note.outputs.result }}
title: 'chore: bump v${{ steps.get_version.outputs.NEW_VERSION }}'
title: "chore: bump v${{ steps.get_version.outputs.NEW_VERSION }}"
draft: true
milestone: 'v${{ steps.get_version.outputs.NEW_VERSION }}'
milestone: "v${{ steps.get_version.outputs.NEW_VERSION }}"
2 changes: 1 addition & 1 deletion .github/workflows/npm-publish-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- uses: actions/setup-node@v3.8.1
with:
node-version: 18
registry-url: 'https://registry.npmjs.org'
registry-url: "https://registry.npmjs.org"
- run: npm ci
- run: npm run build
- run: npm publish --workspaces
Expand Down

0 comments on commit b729d56

Please sign in to comment.