mirror of
https://github.com/openziti/zrok.git
synced 2025-06-26 12:42:18 +02:00
trigger release consistently with a release event
This commit is contained in:
parent
d7e0faa468
commit
d37ecd982c
8
.github/workflows/node-sdk.yml
vendored
8
.github/workflows/node-sdk.yml
vendored
@ -54,20 +54,20 @@ jobs:
|
|||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Get current zrok repo tag
|
- name: Get current zrok repo tag
|
||||||
if: github.ref_type == 'tag'
|
if: github.event.action == 'released'
|
||||||
id: tag
|
id: tag
|
||||||
shell: bash
|
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.event.action == 'released'
|
||||||
shell: bash
|
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
|
||||||
|
|
||||||
- name: Setup .npmrc
|
- name: Setup .npmrc
|
||||||
if: github.ref_type == 'tag'
|
if: github.event.action == 'released'
|
||||||
# Setup .npmrc file to prepare for possible publish to npm
|
# Setup .npmrc file to prepare for possible publish to npm
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
@ -84,7 +84,7 @@ jobs:
|
|||||||
BUILD_DATE: ${{ steps.date.outputs.date }}
|
BUILD_DATE: ${{ steps.date.outputs.date }}
|
||||||
|
|
||||||
- name: NPM Publish
|
- name: NPM Publish
|
||||||
if: github.ref_type == 'tag'
|
if: github.event.action == 'released'
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
cd sdk/nodejs/sdk
|
cd sdk/nodejs/sdk
|
||||||
|
Loading…
x
Reference in New Issue
Block a user