mirror of
https://github.com/rowtype-yoga/purs-eval.git
synced 2024-11-22 09:52:09 +03:00
fix: npm published version not running
This commit is contained in:
parent
ddaad01eed
commit
3f1a295673
4
.github/workflows/release.yml
vendored
4
.github/workflows/release.yml
vendored
@ -25,9 +25,9 @@ jobs:
|
||||
name: klarkc
|
||||
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
||||
- run: |
|
||||
nix build
|
||||
nix build .#npm
|
||||
mkdir -p dist
|
||||
cp result/bin/purs-eval dist
|
||||
cp result dist/purs-eval
|
||||
if: ${{ steps.release.outputs.release_created }}
|
||||
- uses: actions/setup-node@v4
|
||||
if: ${{ steps.release.outputs.release_created }}
|
||||
|
@ -71,9 +71,16 @@
|
||||
};
|
||||
|
||||
packages =
|
||||
with ps;
|
||||
{
|
||||
default = app { inherit name; };
|
||||
# npm version does not publish a nix-store path
|
||||
npm = pkgs.runCommand
|
||||
"purs-eval-npm"
|
||||
{}
|
||||
''
|
||||
echo "#!/usr/bin/env node" > $out
|
||||
tail -n +2 ${packages.default}/bin/purs-eval >> $out
|
||||
'';
|
||||
};
|
||||
|
||||
checks.test = test.check { };
|
||||
|
Loading…
Reference in New Issue
Block a user