mirror of
https://github.com/openziti/zrok.git
synced 2025-06-23 11:11:48 +02:00
let in-line shell run steps raise exceptions
This commit is contained in:
parent
ed26f08d3b
commit
8bb0f970ec
6
.github/workflows/node-sdk.yml
vendored
6
.github/workflows/node-sdk.yml
vendored
@ -12,8 +12,6 @@ jobs:
|
|||||||
name: Require Stable Release Semver
|
name: Require Stable Release Semver
|
||||||
if: github.event.action == 'released'
|
if: github.event.action == 'released'
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
outputs:
|
|
||||||
version: ${{ steps.parse.outputs.version }}
|
|
||||||
steps:
|
steps:
|
||||||
- name: Parse Release Version
|
- name: Parse Release Version
|
||||||
id: parse
|
id: parse
|
||||||
@ -59,10 +57,12 @@ jobs:
|
|||||||
- name: Get current zrok repo tag
|
- name: Get current zrok repo tag
|
||||||
if: github.ref_type == 'tag'
|
if: github.ref_type == 'tag'
|
||||||
id: tag
|
id: tag
|
||||||
|
shell: bash
|
||||||
run: echo "TAG=$(git describe --tags --always)" | tee -a $GITHUB_OUTPUT
|
run: echo "TAG=$(git describe --tags --always)" | tee -a $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Update zrok NodeJS-SDK's package.json version based on current zrok repo git tag
|
- name: Update zrok NodeJS-SDK's package.json version based on current zrok repo git tag
|
||||||
if: github.ref_type == 'tag'
|
if: github.ref_type == 'tag'
|
||||||
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
cd sdk/nodejs/sdk
|
cd sdk/nodejs/sdk
|
||||||
npm version ${{ steps.tag.outputs.TAG }} --no-git-tag-version --allow-same-version
|
npm version ${{ steps.tag.outputs.TAG }} --no-git-tag-version --allow-same-version
|
||||||
@ -76,6 +76,7 @@ jobs:
|
|||||||
registry-url: 'https://registry.npmjs.org'
|
registry-url: 'https://registry.npmjs.org'
|
||||||
|
|
||||||
- name: Build the zrok NodeJS-SDK
|
- name: Build the zrok NodeJS-SDK
|
||||||
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
cd sdk/nodejs/sdk
|
cd sdk/nodejs/sdk
|
||||||
npm install
|
npm install
|
||||||
@ -85,6 +86,7 @@ jobs:
|
|||||||
|
|
||||||
- name: NPM Publish
|
- name: NPM Publish
|
||||||
if: github.ref_type == 'tag'
|
if: github.ref_type == 'tag'
|
||||||
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
cd sdk/nodejs/sdk
|
cd sdk/nodejs/sdk
|
||||||
npm publish --access public
|
npm publish --access public
|
||||||
|
Loading…
x
Reference in New Issue
Block a user