Skip to content

Commit

Permalink
feat: build for release
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jan 29, 2021
1 parent 6a7d551 commit c8c0253
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 11 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
# [2.0.3] - 2021-1-25 [PR: #13](https://github.com/dolittle/add-to-changelog-action/pull/13)
## Summary

The changelog file should be committed before the release is created in order for the new changelog to be a part of the release.

### Fixed

- Release after changelog is committed


# [2.0.2] - 2021-1-25 [PR: #12](https://github.com/dolittle/add-to-changelog-action/pull/12)
## Summary

Expand Down
22 changes: 13 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# GitHub Action - Add To Changelog
![Github JavaScript Actions CI/CD](https://github.com/dolittle/add-to-changelog-action/workflows/Github%20JavaScript%20Actions%20CI/CD/badge.svg)

This GitHub action prepends the release note from the PR body to the CHANGELOG.md file and commits and pushes the file to the current branch.
This GitHub action prepends the release note from the PR body to the `CHANGELOG.md` file. It then commits and pushes the file.

### Inputs
- `version`: The version released
Expand Down Expand Up @@ -36,6 +36,7 @@ jobs:
- run: yarn
- run: yarn release

# this outputs the PR body
- name: Establish context
id: context
uses: dolittle/establish-context-action@v2
Expand All @@ -48,25 +49,28 @@ jobs:
version: ${{ steps.context.outputs.current-version }}
release-type: ${{ steps.context.outputs.release-type }}

- name: Create GitHub Release
if: ${{ steps.context.outputs.should-publish == 'true' }}
uses: dolittle/github-release-action@v2
with:
token: ${{ secrets.BUILD_PAT }}
version: ${{ steps.increment-version.outputs.next-version }}
body: ${{ steps.context.outputs.pr-body }}

- name: Prepend to Changelog
if: ${{ steps.context.outputs.should-publish == 'true' }}
uses: dolittle/add-to-changelog-action@v2
with:
version: ${{ steps.increment-version.outputs.next-version }}
# input for the text to prepend to
body: ${{ steps.context.outputs.pr-body }}
pr-url: ${{ steps.context.outputs.pr-url }}
# path to changelog
changelog-path: CHANGELOG.md
# for committing and pushing
user-email: [email protected]
user-name: some-name
token: ${{ github.token }}

- name: Create GitHub Release
if: ${{ steps.context.outputs.should-publish == 'true' }}
uses: dolittle/github-release-action@v2
with:
token: ${{ secrets.BUILD_PAT }}
version: ${{ steps.increment-version.outputs.next-version }}
body: ${{ steps.context.outputs.pr-body }}
```
## Contributing
Expand Down
4 changes: 2 additions & 2 deletions release/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1790,7 +1790,7 @@ function register (state, name, method, options) {

Object.defineProperty(exports, '__esModule', { value: true });

const VERSION = "2.8.2";
const VERSION = "2.9.0";

/**
* Some “list” response that can be paginated have a different response structure
Expand Down Expand Up @@ -7005,7 +7005,7 @@ const Endpoints = {
}
};

const VERSION = "4.8.1";
const VERSION = "4.9.0";

function endpointsToMethods(octokit, endpointsMap) {
const newMethods = {};
Expand Down

0 comments on commit c8c0253

Please sign in to comment.