Skip to content

Commit

Permalink
ci: update Node.js instalation for GitHub Actions & Gitlab CI
Browse files Browse the repository at this point in the history
use latest NodeSource installation script

See 5ddfaf7 for reference
  • Loading branch information
engineervix committed Feb 10, 2024
1 parent aa21967 commit a34f917
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
7 changes: 2 additions & 5 deletions {{cookiecutter.project_slug}}/.github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -173,11 +173,8 @@ jobs:
pip install --upgrade pip
python -m pip install poetry==1.6.1
poetry install --with dev,test,docs
mkdir -p /etc/apt/keyrings
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
apt-get update -y
apt install nodejs -y
curl -fsSL https://deb.nodesource.com/setup_18.x | bash -
apt-get install -y nodejs
npm ci --cache .npm --prefer-offline
npm run build:prod
touch .env
Expand Down
7 changes: 2 additions & 5 deletions {{cookiecutter.project_slug}}/.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,8 @@ python_tests:
- python -m pip install poetry==1.6.1
- poetry config virtualenvs.in-project true
- poetry install --with dev,test,docs
- mkdir -p /etc/apt/keyrings
- curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
- echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
- apt-get update -y
- apt install nodejs -y
- curl -fsSL https://deb.nodesource.com/setup_18.x | bash -
- apt-get install -y nodejs
- npm ci --cache .npm --prefer-offline
- npm run build:prod
- touch .env
Expand Down

0 comments on commit a34f917

Please sign in to comment.