This repository has been archived by the owner on Dec 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ef82bd7
commit f594d45
Showing
1 changed file
with
36 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -38,4 +73,4 @@ jobs: | |
fetch-depth: 0 | ||
- name: Run jsDelivr-Purge | ||
uses: List-KR/[email protected] | ||
needs: release | ||
needs: [eslint, build, release] |