Skip to content

Commit 4adfd7f

Browse files
authored
Merge pull request #252 from JaredCE/beta
add a beta workflow
2 parents 39472b5 + 4c5b26b commit 4adfd7f

9 files changed

Lines changed: 377 additions & 3187 deletions

File tree

.github/workflows/node.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
push:
88
branches: ["main"]
99
pull_request:
10-
branches: ["main"]
10+
branches: ["main", "beta"]
1111

1212
jobs:
1313
build:
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
3+
4+
name: Node.js Beta Package
5+
6+
on:
7+
push:
8+
branches:
9+
- beta # Or your beta branch name
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v3
16+
- uses: actions/setup-node@v3
17+
with:
18+
node-version: 20
19+
- run: npm ci
20+
# - run: npm test
21+
22+
publish-beta-npm:
23+
needs: build
24+
runs-on: ubuntu-latest
25+
steps:
26+
- uses: actions/checkout@v3
27+
- uses: actions/setup-node@v3
28+
with:
29+
node-version: 20
30+
registry-url: https://registry.npmjs.org/
31+
- run: npm ci
32+
- name: Bump version and publish
33+
run: npm publish --tag beta
34+
env:
35+
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
</a>
1313
</p>
1414

15-
This will generate an OpenAPI V3 (up to v3.0.4) file for you from your serverless file. It can optionally generate a [Postman Collection V2](https://github.com/postmanlabs/openapi-to-postman) or (as of 0.0.120) [Bruno Collection](https://docs.usebruno.com/) from the OpenAPI file. This currently works for `http` and `httpApi` configurations.
15+
This will generate an OpenAPI V3 (up to v3.0.4) Document file for you from your serverless file. It can optionally generate a [Postman Collection V2](https://github.com/postmanlabs/openapi-to-postman) or (as of 0.0.120) [Bruno Collection](https://docs.usebruno.com/) from the OpenAPI file. This currently works for `http` and `httpApi` configurations.
16+
17+
If you are using the beta of 0.0.115, it will now try and create [OpenAPI V3.1 (3.1.x)](https://spec.openapis.org/oas/v3.1.0.html) Document for you, should you run the command `serverless openapi generate -o openapi.json -f json -a 3.1.1 -p postman.json`. Please see this [guide on migrating to V3.1](https://www.openapis.org/blog/2021/02/16/migrating-from-openapi-3-0-to-3-1-0). Whilst I perosnally use this plugin all the time, please do open and report bugs, and I will do my best to fix them.
1618

1719
Originally based off of: https://github.com/temando/serverless-openapi-documentation
1820

@@ -1109,7 +1111,7 @@ module.exports = {
11091111
dereference: {
11101112
circular: false, // Don't allow circular $refs
11111113
excludedPathMatcher: (
1112-
path // Skip dereferencing content under any 'example' key
1114+
path, // Skip dereferencing content under any 'example' key
11131115
) => path.includes("/example/"),
11141116
},
11151117
};

0 commit comments

Comments
 (0)