mirror of
https://github.com/openziti/zrok.git
synced 2025-06-21 02:07:44 +02:00
CI for the zrok NodeJS SDK
This commit is contained in:
parent
5ee69d96b6
commit
8e0d333460
5
.github/workflows/node-sdk.yml
vendored
5
.github/workflows/node-sdk.yml
vendored
@ -46,6 +46,7 @@ jobs:
|
|||||||
run: echo ::set-output name=TAG::$(git describe --tags --abbrev=0)
|
run: echo ::set-output name=TAG::$(git describe --tags --abbrev=0)
|
||||||
|
|
||||||
- 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 == 'refs/heads/main'
|
||||||
run: |
|
run: |
|
||||||
cd ${{ runner.workspace }}/${{ github.event.repository.name }}/sdk/nodejs/sdk
|
cd ${{ runner.workspace }}/${{ github.event.repository.name }}/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
|
||||||
@ -54,6 +55,7 @@ jobs:
|
|||||||
git commit -am "Update package.json version to ${{ steps.tag.outputs.TAG }}" || echo "No changes to commit"
|
git commit -am "Update package.json version to ${{ steps.tag.outputs.TAG }}" || echo "No changes to commit"
|
||||||
|
|
||||||
- name: Push changes to zrok NodeJS-SDK's package.json
|
- name: Push changes to zrok NodeJS-SDK's package.json
|
||||||
|
if: github.ref == 'refs/heads/main'
|
||||||
uses: ad-m/github-push-action@master
|
uses: ad-m/github-push-action@master
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
@ -88,9 +90,8 @@ jobs:
|
|||||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
|
|
||||||
- name: NPM Publish
|
- name: NPM Publish
|
||||||
|
if: github.ref == 'refs/heads/main'
|
||||||
uses: JS-DevTools/npm-publish@v1
|
uses: JS-DevTools/npm-publish@v1
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.NPM_TOKEN }}
|
token: ${{ secrets.NPM_TOKEN }}
|
||||||
access: public
|
access: public
|
||||||
if: |
|
|
||||||
startsWith(github.ref, 'refs/tags/')
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user