Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .github/workflows/release_please.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: release_please

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

on:
workflow_dispatch:
push:
branches:
- main

jobs:
create_release_pr:
runs-on: ubuntu-latest
outputs:
release_created: ${{ steps.release.outputs.release_created }}
tag_name: ${{ steps.release.outputs.tag_name }}
steps:
- uses: googleapis/release-please-action@v4
id: release
with:
token: ${{ secrets.RELEASE_PLEASE_TOKEN }}
manifest-file: ".release-please-manifest.json"
config-file: "release-please-config.json"

retag:
needs: create_release_pr
if: ${{ needs.create_release_pr.outputs.release_created == 'true' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Update major version tag
run: |
VERSION=${{ needs.create_release_pr.outputs.tag_name }}
MAJOR=${VERSION%%.*}
git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]@users.noreply.github.com'
git tag -fa "${MAJOR}" -m "Update ${MAJOR} tag to ${VERSION}"
git push origin "${MAJOR}" --force
3 changes: 3 additions & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
".": "3.0.0"
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "very-good-coverage",
"version": "2.1.0",
"version": "3.0.0",
"description": "A Github Action which helps enforce code coverage threshold using lcov",
"type": "module",
"main": "index.js",
Expand Down
26 changes: 26 additions & 0 deletions release-please-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
"changelog-sections": [
{ "type": "feat", "section": "Features" },
{ "type": "fix", "section": "Bug Fixes" },
{ "type": "refactor", "section": "Refactors" },
{ "type": "chore", "section": "Miscellaneous Chores" },
{ "type": "docs", "section": "Docs" }
],
"pull-request-header": ":rotating_light: There are changes ready for release :rocket:\n\nℹ Merge this PR once the team confirms the release is ready.\n",
"pull-request-title-pattern": "chore: ${version}",
"include-component-in-tag": false,
"packages": {
".": {
"release-type": "node",
"changelog-path": "CHANGELOG.md"
}
},
"exclude-paths": [
".github",
".release-please-manifest.json",
"release-please-config.json",
"CONTRIBUTING.md",
"tool"
]
}
64 changes: 0 additions & 64 deletions tool/release_ready.sh

This file was deleted.

21 changes: 0 additions & 21 deletions tool/retag_v3.sh

This file was deleted.