Skip to content

Commit

Permalink
fix(git-actions): fix apt in workflow github
Browse files Browse the repository at this point in the history
  • Loading branch information
ramyradwan committed Feb 5, 2024
1 parent 1ae3c40 commit 9a7377a
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/lint-stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,21 @@ jobs:
fetch-depth: 0
- name: Install required dependencies
run: |
apt update
apt install -y sudo
sudo apt update
sudo apt install -y sudo
sudo apt install -y git curl
# Add Node.js repository
curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
# Install Node.js
sudo DEBIAN_FRONTEND=noninteractive apt install -y nodejs
# Additional safety check
if [ $? -eq 0 ]; then
echo "Installation completed successfully."
else
echo "Installation failed. Please check for errors above."
fi
- name: Install pnpm
run: |
npm install -g pnpm
Expand Down

0 comments on commit 9a7377a

Please sign in to comment.