Skip to content

Commit

Permalink
make build process get node version
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnDuprey committed Feb 24, 2025
1 parent bff556e commit 33ac08f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/cipp_frontend_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,17 @@ jobs:
uses: actions/checkout@v4.2.2

# Set up Node.js
- name: Get Node version
id: get_node_version
run: |
node_raw_version=$(node -p "require('./package.json').engines.node")
node_sanitized_version=$(echo $node_raw_version | sed -E 's/[^0-9.]+//g')
echo "node_version=$node_sanitized_version" >> $GITHUB_OUTPUT
- name: Set up Node.js
uses: actions/setup-node@v4.2.0
with:
node-version: '20.18.1'
node-version: ${{ steps.get_node_version.outputs.node_version }}

# Install dependencies
- name: Install Dependencies
Expand Down

0 comments on commit 33ac08f

Please sign in to comment.