Skip to content

Commit

Permalink
Merge pull request #312 from NorskHelsenett/feature/npm-publish-error
Browse files Browse the repository at this point in the history
Setting working directory for npm publish job
  • Loading branch information
rogerwesterbo authored Jan 27, 2025
2 parents 70ea775 + 73c47c3 commit 170127a
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 170127a

Please sign in to comment.