Skip to content

Commit

Permalink
feat: setup lunaria (#259)
Browse files Browse the repository at this point in the history
  • Loading branch information
jiazengp authored Oct 12, 2024
2 parents 5869633 + 5f021d6 commit 9f20ed5
Show file tree
Hide file tree
Showing 47 changed files with 3,402 additions and 4,550 deletions.
208 changes: 0 additions & 208 deletions .eslintrc.yml

This file was deleted.

118 changes: 0 additions & 118 deletions .github/diff.cjs

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,4 @@ jobs:
run: pnpm build-mpa

- name: Linter test
run: pnpm run lint:check
run: pnpm run lint
3 changes: 3 additions & 0 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ jobs:
- name: Build
run: pnpm build

- name: Build lunaria
run: pnpm lunaria:build

# 部署
- name: Deploy
uses: easingthemes/[email protected]
Expand Down
40 changes: 40 additions & 0 deletions .github/workflows/lunaria.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Lunaria

on:
# Trigger the workflow every time a pull request is opened or synchronized at the target `main` branch
# Using a different branch name? Replace `main` with your branch’s name
pull_request_target:
types: [opened, synchronize]
branches: [main]

# Allow this job to clone the repository and comment on the pull request
permissions:
contents: read
pull-requests: write

jobs:
lunaria-overview:
name: Generate Lunaria Overview
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4
with:
# Necessary for Lunaria to work properly
# Makes the action clone the entire git history
fetch-depth: 0

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm

- name: Setup PNPM
uses: pnpm/action-setup@v3

- run: pnpm install

- name: Generate Lunaria Overview
uses: yanthomasdev/[email protected]
Loading

0 comments on commit 9f20ed5

Please sign in to comment.