Skip to content

Commit 8e6b4ae

Browse files
committed
Add support for 1.x.x builds to CI workflow
1 parent 75585e3 commit 8e6b4ae

1 file changed

Lines changed: 10 additions & 8 deletions

File tree

.github/workflows/ci.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,29 @@
1-
# This Continous Integration (CI) pipeline lints, builds, and tests the code when a Pull Request is
2-
# created or a commit is pushed to the Prod branch
1+
# This Continuous Integration (CI) pipeline lints, builds, and tests the code when a Pull Request is
2+
# created or a commit is pushed to a Prod branch
33

44
name: CI
5-
65
on:
76
push:
8-
branches: [ "master" ]
7+
branches: [ "master", "1.x.x" ]
98
pull_request:
10-
branches: [ "master" ]
9+
branches: [ "master", "1.x.x" ]
1110

1211
jobs:
13-
continous-integration:
14-
name: Continous Integration
12+
continuous-integration:
13+
name: Continuous Integration
1514
runs-on: ubuntu-latest
1615

1716
steps:
1817
- name: Checkout Repository
1918
uses: actions/checkout@v4
2019

20+
- name: Get Node Version
21+
run: echo "NODE_VERSION=$(cat .nvmrc)" >> $GITHUB_ENV
22+
2123
- name: Set up Node
2224
uses: actions/setup-node@v4
2325
with:
24-
node-version: lts/*
26+
node-version: ${{ env.NODE_VERSION }}
2527

2628
- name: Install Dependencies
2729
run: npm ci

0 commit comments

Comments
 (0)