Skip to content

Commit

Permalink
ci: lint code on regular push
Browse files Browse the repository at this point in the history
  • Loading branch information
AllanChain committed Nov 14, 2024
1 parent f7edb03 commit 65cc36f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ permissions:

jobs:
release:
name: ${{ startsWith(github.ref, 'refs/heads/') && 'Build' || 'Release' }}
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GitHub_TOKEN }}
Expand All @@ -32,8 +33,7 @@ jobs:
run: npm install -f

- name: Build
run: |
npm run build
run: npm run build

- name: Create artifact
if: startsWith(github.ref, 'refs/heads/')
Expand All @@ -42,6 +42,10 @@ jobs:
name: arXiv-workflow-for-zotero
path: build/zotero-arxiv-workflow.xpi

- name: Lint code
if: startsWith(github.ref, 'refs/heads/')
run: npm run lint

- name: Release to GitHub
if: startsWith(github.ref, 'refs/tags/')
run: |
Expand Down

0 comments on commit 65cc36f

Please sign in to comment.