Skip to content

Commit

Permalink
Merge pull request #316 from NorskHelsenett/feature/npm-publish-error5
Browse files Browse the repository at this point in the history
small steps to finish
  • Loading branch information
rogerwesterbo authored Jan 27, 2025
2 parents 6409b5a + 888c06e commit b17ef64
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/release-npm-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
node-version: '22.x'
- name: Build package
run: |
export VERSION=${${{ needs.setenv.outputs.rorversion}}#v*}
export VERSION=${ROR_VERSION#v*}
echo "Building ${{ env.PACKAGE_ORG }}/${{ env.PACKAGE_NAME }} ${VERSION} (${{ needs.setenv.outputs.shortsha}})"
mv package.json package-backup.json
jq --arg rorversion ${VERSION} --arg shortsha ${{ needs.setenv.outputs.shortsha}} '.version = $rorversion | .commit = $shortsha' package-backup.json > package.json
Expand All @@ -59,4 +59,6 @@ jobs:
npm pack
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPMPUBLISHTOKEN }}" > ~/.npmrc
npm publish --access public
env:
ROR_VERSION: ${{ needs.setenv.outputs.rorversion }}

0 comments on commit b17ef64

Please sign in to comment.