From 952489f294267c970b69720fbcbedbcfd9b56738 Mon Sep 17 00:00:00 2001 From: Amr Elsayyad Date: Fri, 21 Jun 2024 12:21:24 +0300 Subject: [PATCH] Update workflows --- .github/workflows/deploy.yml | 10 +++------- .github/workflows/prettier.yml | 9 ++++----- 2 files changed, 7 insertions(+), 12 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index de6e38b266..d2b7e21e75 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -17,22 +17,18 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout 🛎️ - uses: actions/checkout@v3 # If you're using actions/checkout@v3 you must set persist-credentials to false in most cases for the deployment to work correctly. + uses: actions/checkout@v4 with: persist-credentials: false - name: Setup Node.js 🔧 - uses: actions/setup-node@v3.8.1 - with: - node-version: 18.x - - - name: Update npm 🚀 - run: npm install -g npm@latest + uses: actions/setup-node@v4 - name: Install and Build 🔧 # Build the Project run: | npm install npm run build + - name: Deploy 🚀 uses: JamesIves/github-pages-deploy-action@v4 with: diff --git a/.github/workflows/prettier.yml b/.github/workflows/prettier.yml index af42b0fbf3..eacaf3554e 100644 --- a/.github/workflows/prettier.yml +++ b/.github/workflows/prettier.yml @@ -3,19 +3,18 @@ on: push: pull_request: branches: - - master + - my-portfolio jobs: check-format: runs-on: ubuntu-latest steps: - name: Checkout 🛎️ - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: persist-credentials: false - - uses: actions/setup-node@v3.8.1 - with: - node-version: 18.x + - name: Setup Node.js 🔧 + uses: actions/setup-node@v4 - name: Install 🔧 # Install dependencies run: |