Skip to content

Commit 5f655f6

Browse files
authored
Merge pull request #5 from ut-code/ci
ciの設定追加など
2 parents 007fbd1 + 6224594 commit 5f655f6

File tree

3 files changed

+37
-0
lines changed

3 files changed

+37
-0
lines changed

.github/workflows/node.js.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Node.js CI
2+
on:
3+
pull_request:
4+
branches: [ "main" ]
5+
permissions:
6+
contents: read
7+
jobs:
8+
lint:
9+
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
node-version: [22.x]
13+
steps:
14+
- uses: actions/checkout@v4
15+
- uses: actions/setup-node@v4
16+
with:
17+
node-version: ${{ matrix.node-version }}
18+
cache: 'npm'
19+
- run: npm ci
20+
- run: npm run lint
21+
22+
types:
23+
runs-on: ubuntu-latest
24+
strategy:
25+
matrix:
26+
node-version: [22.x]
27+
steps:
28+
- uses: actions/checkout@v4
29+
- uses: actions/setup-node@v4
30+
with:
31+
node-version: ${{ matrix.node-version }}
32+
cache: 'npm'
33+
- run: npm ci
34+
- run: npm run tsc

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# my.code();
22

3+
https://my-code.utcode.net
4+
35
## インストール
46
```bash
57
npm ci

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"build": "npm run cf-typegen && next build",
88
"start": "next start",
99
"lint": "npm run cf-typegen && next lint",
10+
"tsc": "npm run cf-typegen && tsc",
1011
"format": "prettier --write app/",
1112
"cf-preview": "opennextjs-cloudflare build && opennextjs-cloudflare preview",
1213
"cf-deploy": "opennextjs-cloudflare build && opennextjs-cloudflare deploy",

0 commit comments

Comments
 (0)