publish zrok NodeJS SDK when a zrok Release is created

This commit is contained in:
Curt Tudor 2024-05-06 12:19:35 -06:00
parent 11d062a7a8
commit 76cb02fc80
No known key found for this signature in database
GPG Key ID: B3CD225AF4EC8E96

View File

@ -41,13 +41,13 @@ 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' if: github.ref_type == 'tag'
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
- name: Setup .npmrc - name: Setup .npmrc
if: github.ref == 'refs/heads/main' if: github.ref_type == 'tag'
# Setup .npmrc file to prepare for possible publish to npm # Setup .npmrc file to prepare for possible publish to npm
uses: actions/setup-node@v1 uses: actions/setup-node@v1
with: with: