Skip to content

Commit a4a1fa2

Browse files
committed
chore: configure semantic-release branches for stable and preview releases
1 parent 990fa7b commit a4a1fa2

File tree

3 files changed

+16
-8
lines changed

3 files changed

+16
-8
lines changed

.github/workflows/lint-build.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ name: Lint & Build
22

33
on:
44
pull_request:
5-
branches: [ "main" ]
5+
branches:
6+
- main
7+
- develop
68

79
jobs:
810
build:
@@ -11,12 +13,12 @@ jobs:
1113

1214
steps:
1315
- name: Checkout repository
14-
uses: actions/checkout@v4
16+
uses: actions/checkout@v5
1517

1618
- name: Set up Node.js
17-
uses: actions/setup-node@v4
19+
uses: actions/setup-node@v6
1820
with:
19-
node-version: 18.x
21+
node-version: 24.x
2022

2123
- name: Install dependencies
2224
run: npm install --no-package-lock

.github/workflows/release.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,20 @@ name: Release
33
on:
44
workflow_dispatch:
55
push:
6-
branches: [ main ]
6+
branches:
7+
- main
8+
- develop
79

810
jobs:
911
build:
1012
runs-on: ubuntu-latest
1113
environment: Release
1214
steps:
13-
- uses: actions/checkout@v2
15+
- uses: actions/checkout@v5
1416
- name: Use Node.js
15-
uses: actions/setup-node@v3
17+
uses: actions/setup-node@v6
1618
with:
17-
node-version: lts/*
19+
node-version: 24.x
1820
- run: npm install --no-package-lock
1921
name: Install dependencies
2022
- run: npm run build

.releaserc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
{
2+
"branches": [
3+
"main",
4+
{ "name": "develop", "prerelease": "preview" }
5+
],
26
"plugins": [
37
["@semantic-release/commit-analyzer", {
48
"preset": "angular",

0 commit comments

Comments
 (0)