Skip to content

Commit

Permalink
fetchApiの削除 / v3からv4に
Browse files Browse the repository at this point in the history
  • Loading branch information
Pugma committed Jan 21, 2024
1 parent 94d735e commit 2a65c42
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 36 deletions.
21 changes: 10 additions & 11 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
name: Packages
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 20.x
- uses: actions/checkout@v4
Expand All @@ -20,13 +20,12 @@ jobs:
name: Generate APIs
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 20.x
- uses: actions/checkout@v4
- run: SKIP_GENAPI=1 npm ci
- run: npm run postinstall
- uses: actions/upload-artifact@v3
- run: npm ci
- uses: actions/upload-artifact@v4
with:
name: apis
path: ./src/lib/apis/generated
Expand All @@ -35,12 +34,12 @@ jobs:
runs-on: ubuntu-latest
needs: [packages, genApi]
steps:
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 20.x
- uses: actions/checkout@v4
- run: SKIP_GENAPI=1 npm ci
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: apis
path: ./src/lib/apis/generated
Expand All @@ -52,12 +51,12 @@ jobs:
runs-on: ubuntu-latest
needs: [packages, genApi]
steps:
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 20.x
- uses: actions/checkout@v4
- run: SKIP_GENAPI=1 npm ci
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: apis
path: ./src/lib/apis/generated
Expand All @@ -67,12 +66,12 @@ jobs:
runs-on: ubuntu-latest
needs: [packages, genApi]
steps:
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 20.x
- uses: actions/checkout@v4
- run: SKIP_GENAPI=1 npm ci
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: apis
path: ./src/lib/apis/generated
Expand Down
6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,9 @@
"lint": "eslint --fix --ext .ts,.vue src",
"lint:nofix": "eslint --ext .ts,.vue src",
"type-check": "vue-tsc --noEmit",
"fetch-openapi": "node scripts/fetchOpenapi.js",
"gen-api": "node scripts/generateApi.js",
"start-mock": "prism mock -p 4010 -d scripts/traPortfolio.v1.yaml",
"clean": "rimraf scripts/traPorfolio.v1.yaml src/lib/apis/generated",
"postinstall": "npm run fetch-openapi && npm run gen-api"
"start-mock": "prism mock -p 4010 -d https://raw.githubusercontent.com/traPtitech/traPortfolio/main/docs/swagger/traPortfolio.v1.yaml",
"postinstall": "npm run gen-api"
},
"dependencies": {
"@iconify/iconify": "^3.1.1",
Expand Down
21 changes: 0 additions & 21 deletions scripts/fetchOpenapi.js

This file was deleted.

0 comments on commit 2a65c42

Please sign in to comment.