diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml new file mode 100644 index 0000000..caa07b8 --- /dev/null +++ b/.github/workflows/node.js.yml @@ -0,0 +1,34 @@ +name: Node.js CI +on: + pull_request: + branches: [ "main" ] +permissions: + contents: read +jobs: + lint: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [22.x] + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + cache: 'npm' + - run: npm ci + - run: npm run lint + + types: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [22.x] + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + cache: 'npm' + - run: npm ci + - run: npm run tsc diff --git a/README.md b/README.md index c6f89ae..c4207fe 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # my.code(); +https://my-code.utcode.net + ## インストール ```bash npm ci diff --git a/package.json b/package.json index 19d0a9d..522e949 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,7 @@ "build": "npm run cf-typegen && next build", "start": "next start", "lint": "npm run cf-typegen && next lint", + "tsc": "npm run cf-typegen && tsc", "format": "prettier --write app/", "cf-preview": "opennextjs-cloudflare build && opennextjs-cloudflare preview", "cf-deploy": "opennextjs-cloudflare build && opennextjs-cloudflare deploy",