GitHub リポジトリを移行したことでコントリビューション一覧に不要な PR が表示されてしまうので URL を更新する #84
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jobs: | |
build: | |
needs: setup | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
cache: npm | |
node-version: "16.17.0" | |
- uses: actions/cache@v3 | |
with: | |
key: "${{ runner.os }}-node_modules-${{ hashFiles('**/package-lock.json') }}" | |
path: "**/node_modules" | |
- run: "npx next build" | |
lint: | |
needs: setup | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
cache: npm | |
node-version: "16.17.0" | |
- uses: actions/cache@v3 | |
with: | |
key: "${{ runner.os }}-node_modules-${{ hashFiles('**/package-lock.json') }}" | |
path: "**/node_modules" | |
- run: "npm run lint" | |
setup: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
cache: npm | |
node-version: "16.17.0" | |
- uses: actions/cache@v3 | |
with: | |
key: "${{ runner.os }}-node_modules-${{ hashFiles('**/package-lock.json') }}" | |
path: "**/node_modules" | |
- run: "corepack enable npm" | |
- run: "npm set-script prepare ''" | |
- run: "npm ci --legacy-peer-deps" | |
name: "Build and lint" | |
on: | |
push: | |
branches-ignore: | |
- main |