mirror of
https://github.com/openziti/zrok.git
synced 2025-06-24 19:51:32 +02:00
fix workspace paths in container runner
This commit is contained in:
parent
29c6d85b19
commit
4948200c0c
13
.github/workflows/node-sdk.yml
vendored
13
.github/workflows/node-sdk.yml
vendored
@ -54,8 +54,8 @@ jobs:
|
|||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
# with:
|
with:
|
||||||
# fetch-depth: 0
|
fetch-depth: 0
|
||||||
# submodules: recursive
|
# submodules: recursive
|
||||||
# token: ${{ secrets.GITHUB_TOKEN }}
|
# token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
@ -64,13 +64,14 @@ jobs:
|
|||||||
# git config --global url."https://x-access-token:${GITHUB_PAT}@github.com/".insteadOf "https://github.com/"
|
# git config --global url."https://x-access-token:${GITHUB_PAT}@github.com/".insteadOf "https://github.com/"
|
||||||
|
|
||||||
- name: Get current zrok repo tag
|
- name: Get current zrok repo tag
|
||||||
|
if: github.ref_type == 'tag'
|
||||||
id: tag
|
id: tag
|
||||||
run: echo "TAG=$(git describe --tags --abbrev=0)" | 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'
|
||||||
run: |
|
run: |
|
||||||
cd ${{ runner.workspace }}/${{ github.event.repository.name }}/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
|
||||||
@ -83,7 +84,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Build the zrok NodeJS-SDK
|
- name: Build the zrok NodeJS-SDK
|
||||||
run: |
|
run: |
|
||||||
cd ${{ runner.workspace }}/${{ github.event.repository.name }}/sdk/nodejs/sdk
|
cd sdk/nodejs/sdk
|
||||||
npm install
|
npm install
|
||||||
npm run build
|
npm run build
|
||||||
env:
|
env:
|
||||||
@ -92,7 +93,7 @@ jobs:
|
|||||||
- name: NPM Publish
|
- name: NPM Publish
|
||||||
if: github.ref_type == 'tag'
|
if: github.ref_type == 'tag'
|
||||||
run: |
|
run: |
|
||||||
cd ${{ runner.workspace }}/${{ github.event.repository.name }}/sdk/nodejs/sdk
|
cd sdk/nodejs/sdk
|
||||||
npm publish --access public
|
npm publish --access public
|
||||||
env:
|
env:
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user