Skip to content

Commit 8afbfb0

Browse files
committed
chore: update Node.js version in workflows to 22.x and restrict branch triggers for tests to main
- Updated Node.js version from 20.x to 22.x in promote.yaml and publish.yaml workflows. - Changed branch triggers for test workflow from all branches to only the main branch.
1 parent f646f7c commit 8afbfb0

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.github/workflows/promote.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222

2323
- uses: actions/setup-node@v4
2424
with:
25-
node-version: "20.x"
25+
node-version: "22.x"
2626
registry-url: "https://registry.npmjs.org"
2727

2828
- run: npm ci

.github/workflows/publish.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727

2828
- uses: actions/setup-node@v4
2929
with:
30-
node-version: "20.x"
30+
node-version: "22.x"
3131
registry-url: "https://registry.npmjs.org"
3232

3333
- run: npm ci

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: Unit Tests
22

33
on:
44
push:
5-
branches: ["**"]
5+
branches: [main]
66
pull_request:
7-
branches: ["**"]
7+
branches: [main]
88

99
jobs:
1010
test:

0 commit comments

Comments
 (0)