From fa97556f4d207b31d06e499e446068e882b98697 Mon Sep 17 00:00:00 2001 From: Walker Date: Wed, 2 Nov 2022 06:06:55 -0300 Subject: [PATCH] fix: npm bin not being found --- .github/workflows/release.yml | 5 ++++- .gitignore | 1 + package.json | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f5b000a..6510fb1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,7 +25,10 @@ jobs: with: name: klarkc authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' - - run: nix build + - run: | + nix build + mkdir -p dist + cp result/bin/purs-eval dist if: ${{ steps.release.outputs.release_created }} - uses: actions/setup-node@v3 if: ${{ steps.release.outputs.release_created }} diff --git a/.gitignore b/.gitignore index 7b53e3a..6f4d3f9 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,4 @@ /.psa* /.spago /result +/dist diff --git a/package.json b/package.json index f96c909..b474006 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "purs-eval", - "bin": "result/bin/purs-eval", + "bin": "dist/purs-eval", "devDependencies": { "xhr2": "^0.2.1" }