Skip to content

Commit

Permalink
chore: integrate ApiDOM into codebase
Browse files Browse the repository at this point in the history
Refs #2718
  • Loading branch information
char0n committed Dec 27, 2022
1 parent 0d13e92 commit 05b9f43
Show file tree
Hide file tree
Showing 6 changed files with 19,209 additions and 54 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
registry-url: https://npm.pkg.github.com/
scope: "@swagger-api"
- name: Cache Node Modules
id: cache-node-modules
uses: actions/cache@v2
Expand All @@ -32,6 +34,8 @@ jobs:
- name: Install dependencies
if: steps.cache-node-modules.outputs.cache-hit != 'true'
run: npm ci
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Lint commit message
if: github.ref != 'refs/heads/main' && github.actor != 'dependabot[bot]'
run: git log -1 --pretty=format:"%s" | npx commitlint
Expand Down Expand Up @@ -61,6 +65,8 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: 12.4.x
registry-url: https://npm.pkg.github.com/
scope: "@swagger-api"
- name: Cache Node Modules
id: cache-node-modules
uses: actions/cache@v2
Expand All @@ -70,6 +76,8 @@ jobs:
- name: Install dependencies
if: steps.cache-node-modules.outputs.cache-hit != 'true'
run: npm ci
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Download commonjs build artifacts
uses: actions/download-artifact@v1
Expand All @@ -83,12 +91,16 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: 14.x
registry-url: https://npm.pkg.github.com/
scope: "@swagger-api"
- name: Run commonjs build artifacts on Node.js 14.x
run: node -p "require('./commonjs')"

- name: Use Node 16.x
uses: actions/setup-node@v2
with:
node-version: 16.x
registry-url: https://npm.pkg.github.com/
scope: "@swagger-api"
- name: Run commonjs build artifacts on Node.js 16.x
run: node -p "require('./commonjs')"
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,12 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: 16
registry-url: https://npm.pkg.github.com/
scope: "@swagger-api"
- name: Install dependencies
run: npm ci
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Semantic Release
id: semantic
uses: cycjimmy/semantic-release-action@v2
Expand Down
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@swagger-api:registry=https://npm.pkg.github.com
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
14.17
16.16
Loading

0 comments on commit 05b9f43

Please sign in to comment.