Skip to content

Commit 0f2754a

Browse files
committed
ci: Update release settings
1 parent b36c536 commit 0f2754a

File tree

5 files changed

+251
-0
lines changed

5 files changed

+251
-0
lines changed

.github/workflows/.releaserc.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"branches": ["master"],
3+
"plugins": [
4+
"@semantic-release/commit-analyzer",
5+
"@semantic-release/release-notes-generator",
6+
["@semantic-release/npm", { "npmPublish": false }],
7+
[
8+
"@semantic-release/git",
9+
{
10+
"assets": ["package.json", "package-lock.json"],
11+
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
12+
}
13+
],
14+
[
15+
"@semantic-release/github",
16+
{
17+
"successComment": false,
18+
"failTitle": false
19+
}
20+
]
21+
]
22+
}

.github/workflows/pull_requests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ jobs:
1616
run: npm ci
1717
- name: Code Lint
1818
run: npm run lint
19+
- name: Test app build
20+
run: npm run build --if-present
1921
- name: Commit Lint
2022
uses: wagoid/commitlint-github-action@v5
2123
with:

.github/workflows/release.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Create new release
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
release:
10+
name: Release
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@master
14+
- uses: actions/setup-node@v3
15+
with:
16+
node-version-file: '.nvmrc'
17+
- run: npm ci
18+
- run: npm run build --if-present
19+
- run: npm test --if-present
20+
- run: npx semantic-release
21+
env:
22+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

package-lock.json

Lines changed: 204 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
"web-vitals": "^1.0.1"
6060
},
6161
"devDependencies": {
62+
"@semantic-release/git": "^10.0.1",
6263
"@testing-library/react": "^11.1.0",
6364
"@testing-library/user-event": "^12.1.10",
6465
"@types/jest": "^26.0.15",

0 commit comments

Comments
 (0)