File tree Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 1313
1414      - run : yarn install 
1515
16-       - uses : Maggi64/eslint-plus-action@master 
16+       - name : Run lint 
17+         run : npm run lint:report 
18+         continue-on-error : true 
19+ 
20+       - name : Annotate code with linting results 
21+         uses : ataylorme/eslint-annotate-action@v3 
1722        with :
18-           npmInstall : false 
23+           GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} 
24+           report-json : " eslint_report.json" 
Original file line number Diff line number Diff line change @@ -25,17 +25,16 @@ jobs:
2525            git log "$OLD_VERSION"..HEAD --pretty=format:"* %s" > CHANGELOG.md 
2626          else 
2727            echo "Version $OLD_VERSION hasn't changed, skipping the release" 
28-             exit 1 
2928          fi 
3029
3130name : Create a git tag 
32-         if : success() 
31+         if : steps.version.outputs.version 
3332        run : git tag $NEW_VERSION && git push --tags 
3433        env :
3534          NEW_VERSION : ${{ steps.version.outputs.version }} 
3635
3736      - name : GitHub release 
38-         if : success() 
37+         if : steps.version.outputs.version 
3938        uses : actions/create-release@v1 
4039        id : create_release 
4140        with :
Original file line number Diff line number Diff line change 2929  "scripts" : {
3030    "lint" : " tsc && eslint \" ./src/**/*\" " 
3131    "lint:fix" : " yarn lint --fix" 
32+     "lint:report" : " yarn lint --output-file eslint_report.json --format json" 
3233    "build" : " rm -rf dist && tsc" 
3334    "prepublishOnly" : " yarn lint && yarn test:check && yarn build" 
3435    "prettier" : " prettier -w './**/*.ts'" 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments