mirror of
https://github.com/openziti/zrok.git
synced 2025-08-09 08:05:04 +02:00
CI
This commit is contained in:
17
.github/workflows/node-sdk.yml
vendored
17
.github/workflows/node-sdk.yml
vendored
@ -24,12 +24,8 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
config:
|
config:
|
||||||
- { os: windows-latest, target: "windows", arch: "x64" }
|
|
||||||
- { os: ubuntu-20.04, target: "linux", arch: "x64" }
|
- { os: ubuntu-20.04, target: "linux", arch: "x64" }
|
||||||
- { os: ubuntu-20.04, target: "linux", arch: "arm64" }
|
node_ver: [ 20 ]
|
||||||
- { os: macos-latest, target: "macos", arch: "x64" }
|
|
||||||
- { os: macos-latest, target: "macos", arch: "arm64" }
|
|
||||||
node_ver: [ 16, 18, 19, 20, 21]
|
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
@ -40,12 +36,6 @@ jobs:
|
|||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
submodules: 'recursive'
|
submodules: 'recursive'
|
||||||
|
|
||||||
- name: Get crossbuild tools
|
|
||||||
if: matrix.config.target == 'linux' && matrix.config.arch != 'x64'
|
|
||||||
run: |
|
|
||||||
sudo apt update -y
|
|
||||||
sudo apt install -y crossbuild-essential-${{ matrix.config.arch }}
|
|
||||||
|
|
||||||
- name: Node Version
|
- name: Node Version
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
@ -55,15 +45,12 @@ jobs:
|
|||||||
id: date
|
id: date
|
||||||
run: echo "date=$(date)" >> $GITHUB_OUTPUT
|
run: echo "date=$(date)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
|
||||||
- name: Build NodeJS-SDK
|
- name: Build NodeJS-SDK
|
||||||
run: |
|
run: |
|
||||||
cd ${{ runner.workspace }}/${{ github.event.repository.name }}/sdk/nodejs/sdk
|
cd ${{ runner.workspace }}/${{ github.event.repository.name }}/sdk/nodejs/sdk
|
||||||
npm install
|
npm install
|
||||||
npm run build
|
npm run build
|
||||||
env:
|
env:
|
||||||
PRESET: ci-${{ matrix.config.target }}-${{ matrix.config.arch }}
|
|
||||||
TARGET_ARCH: ${{ matrix.config.arch }}
|
|
||||||
BUILD_DATE: ${{ steps.date.outputs.date }}
|
BUILD_DATE: ${{ steps.date.outputs.date }}
|
||||||
|
|
||||||
- name: NPM Publish
|
- name: NPM Publish
|
||||||
@ -72,4 +59,4 @@ jobs:
|
|||||||
token: ${{ secrets.NPM_TOKEN }}
|
token: ${{ secrets.NPM_TOKEN }}
|
||||||
access: public
|
access: public
|
||||||
if: |
|
if: |
|
||||||
matrix.config.os == 'ubuntu-20.04' && matrix.node_ver == '20' && matrix.config.arch == 'x64' && startsWith(github.ref, 'refs/tags/')
|
startsWith(github.ref, 'refs/tags/')
|
2217
sdk/nodejs/examples/http-server/package-lock.json
generated
2217
sdk/nodejs/examples/http-server/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -1,12 +0,0 @@
|
|||||||
{
|
|
||||||
"compilerOptions": {
|
|
||||||
"rootDir": "src",
|
|
||||||
"outDir": "dist",
|
|
||||||
"strict": true,
|
|
||||||
"target": "es6",
|
|
||||||
"module": "commonjs",
|
|
||||||
"sourceMap": true,
|
|
||||||
"esModuleInterop": true,
|
|
||||||
"moduleResolution": "node"
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,7 +0,0 @@
|
|||||||
{
|
|
||||||
"$schema": "./node_modules/@openapitools/openapi-generator-cli/config.schema.json",
|
|
||||||
"spaces": 2,
|
|
||||||
"generator-cli": {
|
|
||||||
"version": "7.1.0"
|
|
||||||
}
|
|
||||||
}
|
|
3859
sdk/nodejs/examples/pastebin/package-lock.json
generated
3859
sdk/nodejs/examples/pastebin/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -1,12 +0,0 @@
|
|||||||
{
|
|
||||||
"compilerOptions": {
|
|
||||||
"rootDir": "src",
|
|
||||||
"outDir": "dist",
|
|
||||||
"strict": true,
|
|
||||||
"target": "es6",
|
|
||||||
"module": "commonjs",
|
|
||||||
"sourceMap": true,
|
|
||||||
"esModuleInterop": true,
|
|
||||||
"moduleResolution": "node"
|
|
||||||
}
|
|
||||||
}
|
|
Reference in New Issue
Block a user