Skip to content

Commit

Permalink
Updated Action
Browse files Browse the repository at this point in the history
  • Loading branch information
pranjaljain0 committed May 5, 2023
1 parent 1ae931b commit e626947
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: "CodeQL"
name: 'CodeQL'

on:
push:
branches: [master, Vercel_Check]
pull_request:
branches: [master]
schedule:
- cron: "44 13 * * 1"
- cron: '44 13 * * 1'

jobs:
analyze:
Expand All @@ -20,7 +20,7 @@ jobs:
strategy:
fail-fast: false
matrix:
language: ["javascript"]
language: ['javascript']
steps:
- name: Checkout repository
uses: actions/checkout@v3
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/deploy-to-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: Deploy to Vercel (production)
on:
push:
branches:
- "master"
- "lighthouse-integration"
- 'master'
- 'lighthouse-integration'

jobs:
setup-environment:
Expand All @@ -25,10 +25,12 @@ jobs:
needs: setup-environment
steps:
- uses: actions/checkout@v3
- name: NPM set legacy-peer-deps to true
run: 'npm config set legacy-peer-deps true'
- uses: amondnet/vercel-action@v20
with:
vercel-token: ${{ secrets.ZEIT_TOKEN }}
vercel-args: "--prod"
vercel-args: '--prod'
vercel-org-id: ${{ secrets.ORG_ID}}
vercel-project-id: ${{ secrets.PROJECT_ID}}

Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,15 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 18

- name: NPM set legacy-peer-deps to true
run: "npm config set legacy-peer-deps true"
run: 'npm config set legacy-peer-deps true'

- name: Insatll Prettier
run: "npm install prettier"
run: 'npm install prettier'

- name: Insatll ESLint
run: "npm i eslint"
run: 'npm i eslint'

- name: Run linters
run: "npx prettier --check ."
run: 'npx prettier --check .'

0 comments on commit e626947

Please sign in to comment.