Skip to content

Update monacle-nix-build.yml #3

Update monacle-nix-build.yml

Update monacle-nix-build.yml #3

name: build only (nix pinned node + next build)
on:
push:
branches: [ "dev", "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
env:
NIX_CONFIG: experimental-features = nix-command flakes
NODE_ENV: production
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Nix
uses: cachix/install-nix-action@v30
with:
extra_nix_config: |
experimental-features = nix-command flakes
accept-flake-config = true
- name: Nix build monacle-run (flake evaluation + derivations)
working-directory: infra
run: |
set -euo pipefail
nix build -L .#monacle-run
- name: Build pinned node from flake and add to PATH
working-directory: infra
run: |
set -euo pipefail
nix build -L .#nodejs_20_20_0 -o ./node
echo "$PWD/node/bin" >> "$GITHUB_PATH"
node -v
npm -v
- name: Next build (using pinned node)
run: |
set -euo pipefail
npm ci
npm run build