Skip to content

Commit

Permalink
Update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
AmrElsayyad committed Jun 21, 2024
1 parent bf2add8 commit 952489f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
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:
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/prettier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
with:
node-version: 18.x
- name: Setup Node.js 🔧
uses: actions/setup-node@v4

- name: Install 🔧 # Install dependencies
run: |
Expand Down

0 comments on commit 952489f

Please sign in to comment.