Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(repo): add release notes generator #263

Merged
merged 1 commit into from
Aug 26, 2024
Merged
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
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