-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from embroider-build/convert-to-github-changelog
swap everything to be github-changelog
- Loading branch information
Showing
14 changed files
with
114 additions
and
2,437 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ on: | |
- main | ||
- master | ||
pull_request: | ||
types: | ||
types: | ||
- labeled | ||
|
||
concurrency: | ||
|
@@ -23,7 +23,7 @@ jobs: | |
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
ref: 'master' | ||
ref: 'main' | ||
# This will only cause the `check-plan` job to have a "command" of `release` | ||
# when the .release-plan.json file was changed on the last commit. | ||
- id: check-release | ||
|
@@ -46,35 +46,42 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v4 | ||
# We need to download lots of history so that | ||
# lerna-changelog can discover what's changed since the last release | ||
# github-changelog can discover what's changed since the last release | ||
with: | ||
fetch-depth: 0 | ||
ref: 'main' | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18 | ||
|
||
- uses: pnpm/action-setup@v2 | ||
- uses: pnpm/action-setup@v3 | ||
with: | ||
version: 8 | ||
- run: pnpm install --frozen-lockfile | ||
|
||
- name: "Generate Explanation and Prep Changelogs" | ||
id: explanation | ||
run: | | ||
set -x | ||
pnpm release-plan prepare --singlePackage=@ef4/lerna-changelog | ||
set +e | ||
pnpm release-plan prepare 2> >(tee -a stderr.log >&2) | ||
echo 'text<<EOF' >> $GITHUB_OUTPUT | ||
jq .description .release-plan.json -r >> $GITHUB_OUTPUT | ||
echo 'EOF' >> $GITHUB_OUTPUT | ||
if [ $? -ne 0 ]; then | ||
echo 'text<<EOF' >> $GITHUB_OUTPUT | ||
cat stderr.log >> $GITHUB_OUTPUT | ||
echo 'EOF' >> $GITHUB_OUTPUT | ||
else | ||
echo 'text<<EOF' >> $GITHUB_OUTPUT | ||
jq .description .release-plan.json -r >> $GITHUB_OUTPUT | ||
echo 'EOF' >> $GITHUB_OUTPUT | ||
fi | ||
env: | ||
GITHUB_AUTH: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- uses: peter-evans/create-pull-request@v5 | ||
- uses: peter-evans/create-pull-request@v6 | ||
with: | ||
commit-message: "Prepare Release using 'release-plan'" | ||
author: "github-actions[bot] <[email protected]>" | ||
labels: "internal" | ||
branch: release-preview | ||
title: Prepare Release | ||
|
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
This file was deleted.
Oops, something went wrong.
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
{ | ||
"name": "@ef4/lerna-changelog", | ||
"version": "2.2.1", | ||
"description": "Generate a changelog for a lerna monorepo", | ||
"name": "github-changelog", | ||
"version": "0.0.0", | ||
"description": "Generate a changelog from GitHub pull requests", | ||
"keywords": [ | ||
"changelog", | ||
"lerna" | ||
"github" | ||
], | ||
"homepage": "https://github.com/ef4/lerna-changelog#readme", | ||
"homepage": "https://github.com/embroider-build/github-changelog#readme", | ||
"bugs": { | ||
"url": "https://github.com/ef4/lerna-changelog/issues" | ||
"url": "https://github.com/embroider-build/github-changelog/issues" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/ef4/lerna-changelog.git" | ||
"url": "git+https://github.com/embroider-build/github-changelog.git" | ||
}, | ||
"license": "MIT", | ||
"author": "Bo Borgerson <[email protected]>", | ||
"main": "index.js", | ||
"bin": { | ||
"lerna-changelog": "bin/cli.js" | ||
"github-changelog": "bin/cli.js" | ||
}, | ||
"scripts": { | ||
"build": "yarn clean && tsc", | ||
|
@@ -84,9 +84,7 @@ | |
"jest": "28.1.3", | ||
"jest-runner-eslint": "2.1.2", | ||
"prettier": "2.8.8", | ||
"release-it": "17.0.0", | ||
"release-it-lerna-changelog": "5.0.0", | ||
"release-plan": "^0.6.0", | ||
"release-plan": "^0.8.0", | ||
"rimraf": "3.0.2", | ||
"ts-jest": "29.1.1", | ||
"typescript": "5.0.4" | ||
|
@@ -95,7 +93,7 @@ | |
"node": "12.* || 14.* || >= 16" | ||
}, | ||
"changelog": { | ||
"repo": "ef4/lerna-changelog", | ||
"repo": "embroider-build/github-changelog", | ||
"labels": { | ||
"breaking": ":boom: Breaking Change", | ||
"enhancement": ":rocket: Enhancement", | ||
|
Oops, something went wrong.