Skip to content
This repository has been archived by the owner on Jan 28, 2024. It is now read-only.

Commit

Permalink
Merge pull request #39 from Fdawgs/ci/semantic-release
Browse files Browse the repository at this point in the history
ci: automate release and changelog generation
  • Loading branch information
Fdawgs committed Feb 26, 2021
2 parents 627bfae + 948c147 commit 17a2526
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 759 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,3 +148,16 @@ jobs:
if: ${{ github.actor == 'dependabot[bot]' && github.event_name == 'pull_request' }}
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

release:
name: Create/Update Release Pull Request
if: github.ref == 'refs/heads/master'
needs: [commit-lint, docker-compose-tests, lint, unit-tests]
runs-on: ubuntu-latest
steps:
- name: Release Please
id: release
uses: GoogleCloudPlatform/release-please-action@v2.20.1
with:
changelog-types: '[ { "type": "feat", "section": "Features", "hidden": false }, { "type": "fix", "section": "Bug Fixes", "hidden": false }, { "type": "build", "section": "Dependencies", "hidden": false }, { "type": "chore", "section": "Miscellaneous", "hidden": false }, { "type": "ci", "section": "Miscellaneous", "hidden": false }, { "type": "perf", "section": "Performance", "hidden": false }, { "type": "refactor", "section": "Miscellaneous", "hidden": false }, { "type": "style", "section": "Miscellaneous", "hidden": false }, { "type": "docs", "section": "Documentation", "hidden": false }]'
release-type: node
11 changes: 0 additions & 11 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,17 +53,6 @@ Prior to submitting a pull request back to the main repository, please make sure
2. Run `npm test` to check the code adheres to the defined style and that it passes the Jest tests
3. Run `npm run lint:prettier` to run the Prettier code formatter over the code

## Release Process

When cutting a release, the following steps need to be performed:

1. Create a release branch with the convention `release/x.x.x`
2. `package.json` needs to have a version update based on the content being released, remembering to adhere to semantic versioning
3. Generate the changelog with `npm run changelog`
4. Create a tag for the version; the naming convention is the version (vx.x.x)
5. Push the tag to the repository
6. Draft a release in the release tab with release notes, copying the notes from the changelog

## Issues

Please file your issues [here](https://github.com/Fdawgs/ydh-fhir-authentication-service/issues) and try to provide as much information in the template as possible/relevant.

0 comments on commit 17a2526

Please sign in to comment.