Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.
name: Update node version - nix flake
on:
push:
branches:
- master
- 'hotfix/**'
jobs:
check-node-version:
runs-on: ubuntu-latest
outputs:
NODE_VERSION: ${{ steps.prefetch.outputs.NODE_VERSION }}
steps:
- uses: actions/checkout@v4
- id: get_package_json_content
run: |
{
echo 'PACKAGE_JSON_CONTENT<<EOF'
cat ./package.json
echo EOF
} >> $GITHUB_OUTPUT
- id: extract_node_version
run: echo "NODE_VERSION=${{ fromJSON(steps.get_package_json_content.outputs.PACKAGE_JSON_CONTENT).volta.node }}" >> $GITHUB_OUTPUT
- name: output node version
run: echo ${{ steps.extract_node_version.outputs.NODE_VERSION }}