Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

Commit

Permalink
ci: update building pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
piquark6046 committed Feb 12, 2024
1 parent ef82bd7 commit f594d45
Showing 1 changed file with 36 additions and 1 deletion.
37 changes: 36 additions & 1 deletion .github/workflows/purgecache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,41 @@ on:
- "main"

jobs:
eslint:
name: Run ESLint
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Set up NodeJS LTS
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
- name: Checkout repository
uses: actions/checkout@v4
- name: Install dependencies
run: npm i
- name: Run ESLint
run: npm run lint
build:
name: Detect changes
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Dependencies
run: npm i
- name: Build
run: npm run build
- name: Detect changes are applied
run: |
! git diff --stat | grep -E " [A-Za-z0-9-]+\.user\.js"
shell: bash
needs: [eslint]
release:
name: Create a Release
runs-on: ubuntu-latest
permissions:
contents: write
Expand All @@ -21,6 +55,7 @@ jobs:
fetch-depth: 0
- name: Create a Release
uses: List-KR/[email protected]
needs: [eslint, build]
jsdelivrpurge:
name: Purge jsDelivr cache
runs-on: ubuntu-latest
Expand All @@ -38,4 +73,4 @@ jobs:
fetch-depth: 0
- name: Run jsDelivr-Purge
uses: List-KR/[email protected]
needs: release
needs: [eslint, build, release]

0 comments on commit f594d45

Please sign in to comment.