Skip to content

Commit

Permalink
build(repo): add release notes generator
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgoff committed Aug 26, 2024
1 parent 472a9f9 commit 438c928
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 4 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,35 @@ on:
branches:
- main

permissions:
contents: read # for checkout

jobs:
release:
name: Release
runs-on: ubuntu-latest
environment:
name: epo-react-lib
strategy:
matrix:
node-version: [20.9]
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
permissions:
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
id-token: write # to enable use of OIDC for npm provenance
steps:
- name: Checkout
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: yarn --frozen-lockfile
- name: Run semantic-release
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
run: yarn release
1 change: 1 addition & 0 deletions packages/epo-react-lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
"@babel/preset-typescript": "^7.18.6",
"@rubin-epo/epo-style-dictionary": "^0.1.0",
"@rubin-epo/eslint-config-react": "^1.0.0-beta",
"@semantic-release/release-notes-generator": "^14.0.1",
"@storybook/addon-actions": "^7.6.3",
"@storybook/addon-essentials": "^7.6.3",
"@storybook/addon-interactions": "^7.6.3",
Expand Down
10 changes: 10 additions & 0 deletions packages/epo-react-lib/release.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,16 @@ const release = {
],
},
],
[
"@semantic-release/release-notes-generator",
{
preset: "conventionalcommits",
releaseRules: [
{ type: "refactor", release: "patch" },
{ type: "style", release: "patch" },
],
},
],
],
};

Expand Down
1 change: 1 addition & 0 deletions packages/epo-widget-lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"devDependencies": {
"@babel/core": "^7.20.12",
"@rubin-epo/eslint-config-react": "^1.0.0-beta",
"@semantic-release/release-notes-generator": "^14.0.1",
"@storybook/addon-a11y": "^7.6.3",
"@storybook/addon-actions": "^7.6.3",
"@storybook/addon-docs": "^7.6.3",
Expand Down
10 changes: 10 additions & 0 deletions packages/epo-widget-lib/release.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,16 @@ const release = {
],
},
],
[
"@semantic-release/release-notes-generator",
{
preset: "conventionalcommits",
releaseRules: [
{ type: "refactor", release: "patch" },
{ type: "style", release: "patch" },
],
},
],
],
};

Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4322,7 +4322,7 @@
semver "^7.1.2"
tempy "^3.0.0"

"@semantic-release/release-notes-generator@^14.0.0-beta.1":
"@semantic-release/release-notes-generator@^14.0.0-beta.1", "@semantic-release/release-notes-generator@^14.0.1":
version "14.0.1"
resolved "https://registry.yarnpkg.com/@semantic-release/release-notes-generator/-/release-notes-generator-14.0.1.tgz#0c091af7857a4dfbfc464b8256a289676f7eddd3"
integrity sha512-K0w+5220TM4HZTthE5dDpIuFrnkN1NfTGPidJFm04ULT1DEZ9WG89VNXN7F0c+6nMEpWgqmPvb7vY7JkB2jyyA==
Expand Down

0 comments on commit 438c928

Please sign in to comment.