@platzio/sdk 0.5.0-beta.10 → 0.5.0-beta.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,48 @@
1
+ name: 🚀 Publish SDK
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+
8
+ jobs:
9
+ release:
10
+ name: 🚀 Publish SDK
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - name: 🛎️ Checkout
14
+ uses: actions/checkout@v3
15
+
16
+ - name: 🛠️ Setup node
17
+ uses: actions/setup-node@v3
18
+ with:
19
+ node-version: 18
20
+
21
+ - name: 🎲 Choose backend version
22
+ id: backend_tag
23
+ run: |
24
+ if [ -f version-override.txt ]
25
+ then
26
+ echo "backend_tag=`cat version-override.txt`" >> "$GITHUB_OUTPUT"
27
+ else
28
+ echo "backend_tag=${{ github.ref_name }}" >> "$GITHUB_OUTPUT"
29
+ fi
30
+
31
+ - name: ⬇️ Download OpenAPI schema
32
+ uses: robinraju/release-downloader@v1.8
33
+ with:
34
+ repository: ${{ github.repository_owner }}/backend
35
+ tag: ${{ steps.backend_tag.outputs.backend_tag }}
36
+ fileName: "openapi.yaml"
37
+
38
+ - name: 🏗️ Generate SDK
39
+ uses: craicoverflow/openapi-generator-action@v1
40
+ with:
41
+ generator: "typescript-axios"
42
+ input: "openapi.yaml"
43
+ output: "."
44
+
45
+ - name: 🚀 Publish to NPM
46
+ uses: JS-DevTools/npm-publish@v2
47
+ with:
48
+ token: ${{ secrets.NPM_TOKEN }}
@@ -0,0 +1,9 @@
1
+ .gitignore
2
+ .npmignore
3
+ .openapi-generator-ignore
4
+ api.ts
5
+ base.ts
6
+ common.ts
7
+ configuration.ts
8
+ git_push.sh
9
+ index.ts
@@ -0,0 +1 @@
1
+ 6.6.0
@@ -0,0 +1,23 @@
1
+ # OpenAPI Generator Ignore
2
+ # Generated by openapi-generator https://github.com/openapitools/openapi-generator
3
+
4
+ # Use this file to prevent files from being overwritten by the generator.
5
+ # The patterns follow closely to .gitignore or .dockerignore.
6
+
7
+ # As an example, the C# client generator defines ApiClient.cs.
8
+ # You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
9
+ #ApiClient.cs
10
+
11
+ # You can match any string of characters against a directory, file or extension with a single asterisk (*):
12
+ #foo/*/qux
13
+ # The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
14
+
15
+ # You can recursively match patterns against a directory, file or extension with a double asterisk (**):
16
+ #foo/**/qux
17
+ # This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
18
+
19
+ # You can also negate patterns with an exclamation (!).
20
+ # For example, you can ignore all files in a docs folder with the file extension .md:
21
+ #docs/*.md
22
+ # Then explicitly reverse the ignore rule for a single file:
23
+ #!docs/README.md