Skip to content

Commit

Permalink
feat: add release please action to automate releases (#2497) (#2498)
Browse files Browse the repository at this point in the history
  • Loading branch information
NoopDog committed Nov 6, 2024
1 parent a8e6598 commit dd4d815
Show file tree
Hide file tree
Showing 5 changed files with 67 additions and 7 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
on:
push:
branches:
- main

permissions:
contents: write
pull-requests: write

name: release-please

jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: googleapis/release-please-action@v4
id: release
with:
config-file: release-please-config.json
# this assumes that you have created a personal access token
# (PAT) and configured it as a GitHub action secret named
# `MY_RELEASE_PLEASE_TOKEN` (this secret name is not important).
token: ${{ secrets.HCA_RELEASE_PLEASE_TOKEN }}
# This is a built-in strategy in release-please, see "Action Inputs" for more options
24 changes: 17 additions & 7 deletions .github/workflows/run-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,22 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20.10.0"
- run: |
npm ci
npm run check-format
npm run lint
npx tsc --noEmit
- name: Cache npm cache
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
- name: Install dependencies
run: npm ci
- name: Next.js Build
run: npm run build-prod:data-portal
- name: Run Prettier
run: npm run check-format
- name: Run Linter (ESLint)
run: npm run lint
- name: Type Check
run: npx tsc --noEmit
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# general
README.md
CHANGELOG.md

# testing
coverage
Expand Down
3 changes: 3 additions & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
".": "2.0.0"
}
22 changes: 22 additions & 0 deletions release-please-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"monorepo-tags": false,
"packages": {
".": {
"release-type": "node",
"component": "",
"include-component-in-tag": false
}
},
"changelog-sections": [
{ "type": "feat", "section": "Features" },
{ "type": "fix", "section": "Bug Fixes" },
{ "type": "chore", "section": "Chores" },
{ "type": "docs", "section": "Documentation" },
{ "type": "style", "section": "Styles" },
{ "type": "refactor", "section": "Code Refactoring" },
{ "type": "perf", "section": "Performance Improvements" },
{ "type": "test", "section": "Tests" },
{ "type": "build", "section": "Build System" },
{ "type": "ci", "section": "Continuous Integration" }
]
}

0 comments on commit dd4d815

Please sign in to comment.