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

Commit

Permalink
update building pipeline (#77)
Browse files Browse the repository at this point in the history
* build: add pnpm

* ci: update building pipeline
  • Loading branch information
piquark6046 authored Feb 12, 2024
1 parent 6e3cadb commit 92cbef8
Show file tree
Hide file tree
Showing 2 changed files with 37 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]
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"eslint-config-xo": "^0.44.0",
"eslint-config-xo-typescript": "^2.0.0",
"playwright": "^1.40.0",
"pnpm": "^8.15.1",
"typescript": "^5.3.2"
}
}

0 comments on commit 92cbef8

Please sign in to comment.