From 5eec9586b70cd868a85c278e946e6b8cbc7a267a Mon Sep 17 00:00:00 2001 From: NW Date: Thu, 14 Nov 2024 20:16:38 +0000 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20.gitea/workflows/prod.yaml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/prod.yaml | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/prod.yaml b/.gitea/workflows/prod.yaml index 429055f..68628b7 100644 --- a/.gitea/workflows/prod.yaml +++ b/.gitea/workflows/prod.yaml @@ -1,4 +1,5 @@ name: "Telegram Shop Bot CI [PROD]" + on: push: branches: ["prod"] @@ -7,7 +8,23 @@ on: jobs: lint: - runs-on: node:22-alpine + runs-on: ubuntu-latest # Запускаем на универсальной платформе steps: - name: Checkout code - uses: actions/checkout@v3 \ No newline at end of file + uses: actions/checkout@v3 + + - name: Set up Node.js 22 + run: | + # Устанавливаем nvm (Node Version Manager) + curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash + export NVM_DIR="$HOME/.nvm" + [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" + nvm install 22 + nvm use 22 + node -v # Проверка установленной версии Node.js + + - name: Install dependencies + run: npm install + + - name: Run lint + run: npm run lint \ No newline at end of file