Skip to content

Commit

Permalink
fix path for publishing packages
Browse files Browse the repository at this point in the history
  • Loading branch information
cristidas committed Apr 4, 2024
1 parent 63194ca commit 84c98d7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish-client-package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ jobs:

- name: Install dependencies with pnpm
run: pnpm i
working-directory: sdk/sdk-client
working-directory: sdk/sdk-client/bundle

- name: Publish package with pnpm
run: pnpm bundle:npm
working-directory: sdk/sdk-client
working-directory: sdk/sdk-client/bundle
env:
NPM_ACCESS_TOKEN: ${{ inputs.npm_access_token }}
4 changes: 2 additions & 2 deletions .github/workflows/publish-packages-manually.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ jobs:
ref: ${{ github.event.inputs.branch || github.ref_name }}
- id: common-version-check
run: |
if git diff HEAD^ HEAD -- sdk/sdk-common/package.json | grep '"version":'; then
if git diff HEAD^ HEAD -- sdk/sdk-common/bundle/package.json | grep '"version":'; then
echo "::set-output name=changed::true"
else
echo "::set-output name=changed::false"
fi
- id: client-version-check
run: |
if git diff HEAD^ HEAD -- sdk/sdk-client/package.json | grep '"version":'; then
if git diff HEAD^ HEAD -- sdk/sdk-client/bundle/package.json | grep '"version":'; then
echo "::set-output name=changed::true"
else
echo "::set-output name=changed::false"
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/publish-packages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ on:
branches:
- main
paths:
- 'sdk/sdk-common/package.json'
- 'sdk/sdk-client/package.json'
- 'sdk/sdk-common/bundle/package.json'
- 'sdk/sdk-client/bundle/package.json'

jobs:
prepare:
Expand All @@ -26,14 +26,14 @@ jobs:
fetch-depth: 2
- id: common-version-check
run: |
if git diff HEAD^ HEAD -- sdk/sdk-common/package.json | grep '"version":'; then
if git diff HEAD^ HEAD -- sdk/sdk-common/bundle/package.json | grep '"version":'; then
echo "::set-output name=changed::true"
else
echo "::set-output name=changed::false"
fi
- id: client-version-check
run: |
if git diff HEAD^ HEAD -- sdk/sdk-client/package.json | grep '"version":'; then
if git diff HEAD^ HEAD -- sdk/sdk-client/bundle/package.json | grep '"version":'; then
echo "::set-output name=changed::true"
else
echo "::set-output name=changed::false"
Expand Down

0 comments on commit 84c98d7

Please sign in to comment.