Skip to content

Commit 3848494

Browse files
committed
feat: automate release/changelog with release-please
1 parent cf79662 commit 3848494

File tree

3 files changed

+51
-10
lines changed

3 files changed

+51
-10
lines changed

.github/workflows/release-please.yml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: release-please
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
release-please:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: google-github-actions/release-please-action@v2
13+
with:
14+
token: ${{ secrets.GITHUB_TOKEN }}
15+
release-type: node
16+
package-name: simple-git
17+
18+
- uses: actions/checkout@v2
19+
if: ${{ steps.release.outputs.release_created }}
20+
21+
- uses: actions/setup-node@v1
22+
with:
23+
node-version: 14
24+
registry-url: 'https://registry.npmjs.org'
25+
if: ${{ steps.release.outputs.release_created }}
26+
27+
- run: yarn
28+
if: ${{ steps.release.outputs.release_created }}
29+
30+
- run: yarn preversion
31+
if: ${{ steps.release.outputs.release_created }}
32+
33+
- run: npm publish
34+
env:
35+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
36+
if: ${{ steps.release.outputs.release_created }}

CHANGELOG.md

+2-10
Original file line numberDiff line numberDiff line change
@@ -303,14 +303,6 @@ please only use the documented public API.
303303
`git.log`.
304304

305305

306-
## 1.110.0 - ListLogLine
307-
308-
- The default format expression used in `.log` splits ref data out of the `message` into a property of its own: `{ message: 'Some commit message (some-branch-name)' }` becomes `{ message: 'Some commit message', refs: 'some-branch-name' }` |
309-
- The commit body content is now included in the default format expression and can be used to identify the content of merge conflicts eg: `{ body: '# Conflicts:\n# some-file.txt' }` |
310-
311-
312-
## 1.0.0
313-
314-
Bumped to a new major revision in the 1.x branch, now uses `ChildProcess.spawn` in place of `ChildProcess.exec` to
315-
add escaping to the arguments passed to each of the tasks.
306+
## v1 and below
316307

308+
Please see the [historical changelog](./docs/CHANGELOG-HISTORICAL.md);

docs/CHANGELOG-HISTORICAL.md

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Change History & Release Notes
2+
3+
## 1.110.0 - ListLogLine
4+
5+
- The default format expression used in `.log` splits ref data out of the `message` into a property of its own: `{ message: 'Some commit message (some-branch-name)' }` becomes `{ message: 'Some commit message', refs: 'some-branch-name' }` |
6+
- The commit body content is now included in the default format expression and can be used to identify the content of merge conflicts eg: `{ body: '# Conflicts:\n# some-file.txt' }` |
7+
8+
9+
## 1.0.0
10+
11+
Bumped to a new major revision in the 1.x branch, now uses `ChildProcess.spawn` in place of `ChildProcess.exec` to
12+
add escaping to the arguments passed to each of the tasks.
13+

0 commit comments

Comments
 (0)