Skip to content

Commit

Permalink
fix(nix ci): action can only use one uses in one step
Browse files Browse the repository at this point in the history
  • Loading branch information
aimixsaka committed Jul 26, 2024
1 parent c08e3cf commit d6ec0ed
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion .github/workflows/udpate-nix-npm-dep.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ jobs:
- name: update package-lock.json and npmDepsHash
uses: cachix/install-nix-action@v27
uses: actions/setup-node@v4
run: ./update-nix-npm-dep.sh

- name: create github pr
Expand Down
2 changes: 1 addition & 1 deletion update-nix-npm-dep.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash

# script help to update package-lock.json and nix flake npmDepsHash
npm i --package-lock-only
nix shell nixpkgs#nodePackages.npm nixpkgs#husky --command npm i --package-lock-only
sed -i "s|npmDepsHash = \".*\";|npmDepsHash = \"$(nix run nixpkgs#prefetch-npm-deps package-lock.json | tail -1)\";|" flake.nix

0 comments on commit d6ec0ed

Please sign in to comment.