-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (33 loc) · 847 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: CI
on:
pull_request:
types:
- opened
- reopened
- synchronize
permissions:
contents: read
jobs:
lint:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[skip ci]')"
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '22.x'
- name: Setup pnpm
uses: pnpm/action-setup@v3
with:
version: 9
- name: Install dependencies
run: pnpm install
- name: Lint source code
run: pnpm lint
- name: Build app for Renovate PRs
if: startsWith(github.head_ref, 'renovate/')
run: pnpm build
env:
NOTION_DATABASE_ID: ${{ secrets.NOTION_DATABASE_ID }}
NOTION_TOKEN: ${{ secrets.NOTION_TOKEN }}