Browse Source

Update and rename verify.yml to pull-request.yml

Aykut Saraç 2 years ago
parent
commit
daa6c974c7
1 changed files with 10 additions and 0 deletions
  1. 10 0
      .github/workflows/pull-request.yml

+ 10 - 0
.github/workflows/verify.yml → .github/workflows/pull-request.yml

@@ -5,12 +5,22 @@ on:
   pull_request:
     branches:
     - main
+    
+permissions:
+  pull-requests: read
 
 jobs:
   build:
     name: Verify Build
     runs-on: ubuntu-latest
     steps:
+      - name: Check out code
+        uses: actions/checkout@v3
+      - name: Set Node env
+        uses: actions/setup-node@v3
+        with:
+          node-version: 16
+          cache: 'npm'
       - name: Check Lint
         run: npm run lint
       - name: Build