From 335481f38812e6a38e69d500a02beb78157a1999 Mon Sep 17 00:00:00 2001 From: Curt Tudor Date: Mon, 25 Mar 2024 14:51:15 -0600 Subject: [PATCH] CI --- .github/workflows/node-sdk.yml | 13 ++++++++++--- sdk/nodejs/sdk/package.json | 4 ++-- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/node-sdk.yml b/.github/workflows/node-sdk.yml index a8fa5efb..e4b7f870 100644 --- a/.github/workflows/node-sdk.yml +++ b/.github/workflows/node-sdk.yml @@ -1,8 +1,15 @@ -name: Build/Relesae Node SDK +name: Build/Release Node SDK on: release: types: [ published ] + push: + branches: [ main ] + paths-ignore: + - 'package.json' + - 'CHANGELOG.md' + pull_request: + branches: [ main ] jobs: @@ -51,9 +58,9 @@ jobs: - name: Build NodeJS-SDK run: | - cd ${{ runner.workspace }}/${{ github.event.repository.name }} + cd ${{ runner.workspace }}/${{ github.event.repository.name }}/sdk/nodejs/sdk npm install - npm run build:package -- --target_arch=${{ matrix.config.arch }} + npm run build env: PRESET: ci-${{ matrix.config.target }}-${{ matrix.config.arch }} TARGET_ARCH: ${{ matrix.config.arch }} diff --git a/sdk/nodejs/sdk/package.json b/sdk/nodejs/sdk/package.json index 310175c2..befc219a 100644 --- a/sdk/nodejs/sdk/package.json +++ b/sdk/nodejs/sdk/package.json @@ -1,6 +1,6 @@ { - "name": "zrok", - "version": "1.0.0", + "name": "@openziti/zrok", + "version": "0.1.0", "description": "SDK to enable programmatic use of the zrok sharing methods", "main": "./dist/index.js", "module": "./dist/index.mjs",