From 27df7a8ab75384772950166a13464b423781df21 Mon Sep 17 00:00:00 2001 From: Ruslan Lukoyanov <105169805+rLukoyanov@users.noreply.github.com> Date: Wed, 7 Aug 2024 22:30:25 +0300 Subject: [PATCH 1/4] Update main.yml --- .github/workflows/main.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 26b3c62..9a06094 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -29,7 +29,3 @@ jobs: run: yarn install - name: Run ESLint run: yarn lint - - name: Run Prettier - run: yarn prettier --check '**/*.{js,ts,tsx,jsx}' - - From df1de4bc45cbb356ab8e048fae4e7d8b51d09e33 Mon Sep 17 00:00:00 2001 From: Ruslan Lukoyanov <105169805+rLukoyanov@users.noreply.github.com> Date: Wed, 7 Aug 2024 23:30:30 +0300 Subject: [PATCH 2/4] Create Deploy Preview --- .github/workflows/Deploy Preview | 34 ++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/Deploy Preview diff --git a/.github/workflows/Deploy Preview b/.github/workflows/Deploy Preview new file mode 100644 index 0000000..e44bf2c --- /dev/null +++ b/.github/workflows/Deploy Preview @@ -0,0 +1,34 @@ +name: Deploy Preview + +on: + pull_request: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Node.js + uses: actions/setup-node@v2 + with: + node-version: '16' # Убедитесь, что версия Node.js соответствует требованиям вашего проекта + + - name: Install dependencies + run: npm install + + - name: Build application + run: npm run build + + - name: Deploy to Vercel + uses: amondnet/vercel-action@v20 + with: + vercel-token: ${{ secrets.VERCEL_TOKEN }} + vercel-args: '--prod' + working-directory: ./ + github-token: ${{ secrets.GITHUB_TOKEN }} + scope: your-vercel-username # Укажите ваше имя пользователя Vercel From 1d2685c82624ec2ae8d4fcd88ae7870f46f04636 Mon Sep 17 00:00:00 2001 From: Ruslan Lukoyanov <105169805+rLukoyanov@users.noreply.github.com> Date: Wed, 7 Aug 2024 23:30:54 +0300 Subject: [PATCH 3/4] Rename Deploy Preview to Deploy Preview.yml --- .github/workflows/{Deploy Preview => Deploy Preview.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{Deploy Preview => Deploy Preview.yml} (100%) diff --git a/.github/workflows/Deploy Preview b/.github/workflows/Deploy Preview.yml similarity index 100% rename from .github/workflows/Deploy Preview rename to .github/workflows/Deploy Preview.yml From 13b80a34cdd518e48858612b9de73e88e7fa527d Mon Sep 17 00:00:00 2001 From: Ruslan Lukoyanov <105169805+rLukoyanov@users.noreply.github.com> Date: Wed, 7 Aug 2024 23:44:08 +0300 Subject: [PATCH 4/4] Update Deploy Preview.yml --- .github/workflows/Deploy Preview.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/Deploy Preview.yml b/.github/workflows/Deploy Preview.yml index e44bf2c..b11ee1f 100644 --- a/.github/workflows/Deploy Preview.yml +++ b/.github/workflows/Deploy Preview.yml @@ -14,9 +14,9 @@ jobs: uses: actions/checkout@v2 - name: Set up Node.js - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: - node-version: '16' # Убедитесь, что версия Node.js соответствует требованиям вашего проекта + node-version: '18.17.0' - name: Install dependencies run: npm install @@ -31,4 +31,4 @@ jobs: vercel-args: '--prod' working-directory: ./ github-token: ${{ secrets.GITHUB_TOKEN }} - scope: your-vercel-username # Укажите ваше имя пользователя Vercel + scope: ruslanlukoanov0-gmailcom