Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

fix(test10): test10 #32

fix(test10): test10

fix(test10): test10 #32

name: Update node version - nix flake
on:
push:
branches:
- 'release-please--branches--master--components--clever-tools'
# paths:
# - 'package.json'
jobs:
get-node-version:
runs-on: ubuntu-latest
outputs:
NODE_VERSION: ${{ steps.output_node_version.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
id: output_node_version
run: echo "${{ steps.extract_node_version.outputs.NODE_VERSION }} | sed '\..+//g'"
update-nix-flake-node-version:
runs-on: ubuntu-latest
needs: get-node-version
steps:
- name: replace nix flake node version
run: sed -i "s/\+/${{ steps.escape.outputs.NPM_DEPS_HASH_ESCAPED }}/" flake.nix