Skip to content

Commit

Permalink
feat: bundle ApiDOM dependencies
Browse files Browse the repository at this point in the history
With this change, we avoid installing ApiDOM
from GitHub Package registry.
  • Loading branch information
char0n committed Jan 23, 2023
1 parent 5dfaca4 commit 85d234f
Show file tree
Hide file tree
Showing 6 changed files with 12,333 additions and 21,857 deletions.
11 changes: 1 addition & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,11 @@ name: Release
on:
workflow_dispatch:
branches:
- cha0rn/openapi-3-1-support

workflow_run:
workflows:
- "Node.js CI"
branches:
- char0n/openapi-3-1-support
types:
- completed
- alpha
jobs:
release:
name: Release
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion .releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"release": {
"branches": [
{"name": "master"},
{"name": "char0n/openapi-3-1-support", "channel": "alpha", "prerelease": "alpha"}
{"name": "alpha", "channel": "alpha", "prerelease": "alpha"}
],
"tagFormat": "v${version}"
},
Expand Down
2 changes: 1 addition & 1 deletion config/webpack/browser.config.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const browser = {
}),
new DuplicatesPlugin({
// emit compilation warning or error? (Default: `false`)
emitErrors: true,
emitErrors: false, // https://github.com/FormidableLabs/inspectpack/issues/181
// display full duplicates information? (Default: `false`)
verbose: true,
}),
Expand Down
5 changes: 5 additions & 0 deletions docs/development/setting-up.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@

Generally, we recommend following guidelines from [Node.js Releases](https://nodejs.org/en/about/releases/) to only use `Current`, `Active LTS` or `Maintenance LTS` releases.

swagger-client is using certain dependencies ([ApiDOM](https://github.com/swagger-api/apidom)) that are hosted on [GitHub packages registry](https://docs.github.com/en/packages/learn-github-packages/introduction-to-github-packages).
Before running `npm install` you need to [authenticate to GitHub Packages](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-npm-registry#authenticating-to-github-packages).
You can use your GitHUB PAT (Personal Access Token) or use npm login. More information can be found
in [Working with the npm registry](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-npm-registry#authenticating-with-a-personal-access-token) GitHub guide.

### Steps

1. `git clone https://github.com/swagger-api/swagger-js.git`
Expand Down
Loading

0 comments on commit 85d234f

Please sign in to comment.