Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,26 @@ jobs:
- name: Build project
run: yarn build
if: ${{ github.event_name != 'pull_request' }}

nixpacks_build:
name: Validate Railway/Nixpacks build
runs-on: ubuntu-22.04
environment: "Preview"
needs: pre_job
if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
env:
NIXPACKS_VERSION: '1.41.0'
steps:
- name: 'Checkout Project'
uses: 'actions/checkout@v4'
with:
fetch-depth: 1

- name: Install Nixpacks
run: curl -sSL https://nixpacks.com/install.sh | NIXPACKS_VERSION=$NIXPACKS_VERSION bash -s -- --yes

- name: Verify Nixpacks version
run: nixpacks --version

- name: Build with Nixpacks
run: nixpacks build . --name open-tacos-ci
5 changes: 4 additions & 1 deletion nixpacks.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
nixPkgs = ["nodejs_20"]

[phases.install]
cmds = ["yarn install --no-progress --silence"]
cmds = [
"corepack enable",
"yarn install --no-progress --silence"
]

[phases.build]
cmds = ["yarn build"]
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"description": "Open source climbing route catalog",
"version": "1.0.0",
"author": "OpenBeta <hello@openbeta.io>",
"packageManager": "yarn@1.22.22",
"dependencies": {
"@algolia/autocomplete-js": "1.7.1",
"@algolia/autocomplete-theme-classic": "1.7.1",
Expand Down
Loading