Skip to content

Commit

Permalink
Setting working directory for npm publish job
Browse files Browse the repository at this point in the history
  • Loading branch information
westerbo-nhn committed Jan 27, 2025
1 parent 70ea775 commit 73c47c3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/release-npm-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
env:
PACKAGE_NAME: ror-resources
PACKAGE_ORG: "@rork8s"
PACKAGE_PATH: "typescript/models"

jobs:
setenv:
Expand All @@ -31,6 +32,9 @@ jobs:
if: github.ref_type == 'tag'
runs-on: ubuntu-latest
needs: setenv
defaults:
run:
working-directory: ${{ env.PACKAGE_PATH }}

permissions:
contents: read
Expand Down Expand Up @@ -58,4 +62,4 @@ jobs:
run: |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPMPUBLISHTOKEN }}" > ~/.npmrc
npm publish --access public

0 comments on commit 73c47c3

Please sign in to comment.