Skip to content

Commit

Permalink
fix changelog generation
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeHackett12 committed Feb 27, 2024
1 parent 5ea1ac3 commit c16e588
Show file tree
Hide file tree
Showing 4 changed files with 423 additions and 33 deletions.
18 changes: 7 additions & 11 deletions .github/workflows/release-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,20 @@ jobs:
git config user.name "${GITHUB_ACTOR}"
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
- name: Setup node

- uses: actions/setup-node@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: npm

- name: Install dependancies
run: yarn install --frozen-lockfile

- name: Prepare release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TYPE_ARG: ${{ fromJSON('{"auto":"", "patch":"patch", "minor":"minor", "major":"major"}')[github.event.inputs.type] }}
run: npm run release -- $TYPE_ARG --ci --verbose --no-git.push --no-git.commit --no-git.tag --no-github
run: yarn run release $TYPE_ARG --ci --verbose --no-git.push --no-git.commit --no-git.tag --no-github

- name: Show git status
if: failure()
Expand All @@ -49,12 +51,6 @@ jobs:
id: extract-release-notes
uses: ffurrer2/extract-release-notes@v1

- name: Generate PR body
id: body
uses: mathiasvr/command-output@v1
with:
run: node ./bin/pr.js

- name: Create pull request
uses: peter-evans/create-pull-request@v4
id: cpr
Expand All @@ -70,4 +66,4 @@ jobs:
release
automated pr
signoff: false
draft: false
draft: false
10 changes: 0 additions & 10 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1 @@
### Changelog


## [1.0.12](https://github.com/ObolNetwork/obol-sdk/compare/68ec522...v1.0.12) (2024-02-27)

### Bug Fixes

* Fixing release pipeline


All notable changes to this project will be documented in this file. Dates are displayed in UTC.
26 changes: 26 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
"uuid": "^9.0.0"
},
"devDependencies": {
"@release-it/conventional-changelog": "^8.0.1",
"@types/elliptic": "^6.4.18",
"@types/jest": "^28.1.8",
"@types/node": "^20.2.5",
Expand All @@ -78,6 +79,31 @@
"dist",
"src"
],
"release-it": {
"git": {
"commitMessage": "chore(release): v${version}",
"push": true,
"commit": true,
"tag": true,
"requireCommits": false,
"requireCleanWorkingDir": false
},
"github": {
"release": true,
"draft": true
},
"npm": {
"publish": false,
"ignoreVersion": false
},
"plugins": {
"@release-it/conventional-changelog": {
"preset": "eslint",
"infile": "CHANGELOG.md",
"header": "# Changelog"
}
}
},
"jest": {
"transform": {
"\\.[jt]sx?$": "ts-jest"
Expand Down
Loading

0 comments on commit c16e588

Please sign in to comment.