Skip to content

Commit

Permalink
Add npm install
Browse files Browse the repository at this point in the history
  • Loading branch information
ninokeldishvili committed May 7, 2024
1 parent 1f4951b commit 33f21b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,8 @@ jobs:
uses: DeterminateSystems/nix-installer-action@v4
- uses: DeterminateSystems/magic-nix-cache-action@v2

- name: Install dependencies
run: nix develop -c "npm install"

- name: CI lint
run: nix develop -c ci-lint
8 changes: 1 addition & 7 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,7 @@
packages.ipfs-add
packages.security-check
];
shellHook = ''
touch .env && source .env
export PATH=$(npm bin):$PATH
# keep it fresh
npm install
${rainix.devShells.${system}.default.shellHook}
'';
shellHook = rainix.devShells.${system}.default.shellHook;
buildInputs = rainix.devShells.${system}.default.buildInputs;
nativeBuildInputs = rainix.devShells.${system}.default.nativeBuildInputs;
};
Expand Down

0 comments on commit 33f21b4

Please sign in to comment.