Skip to content

Commit

Permalink
changed to vars
Browse files Browse the repository at this point in the history
  • Loading branch information
nichlaes committed Oct 31, 2024
1 parent ad29e12 commit 872bd3a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/lib-ms.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,9 @@ jobs:
version=`cat ./servers/lib/package.json | jq -r '.version'`
echo "version=$version" >> $GITHUB_OUTPUT
echo "node-version=$NODE_VERSION" >> $GITHUB_OUTPUT
echo "package-name=$PACKAGE_NAME" >> $GITHUB_OUTPUT
outputs:
version: ${{ steps.get_version.outputs.version }}
node-version: ${{ steps.get_version.outputs.node-version }}
package-name: ${{ steps.get_version.outputs.package-name }}

publish-package-github:
if: |
Expand All @@ -144,7 +142,7 @@ jobs:
node-version: ${{ needs.get_version.outputs.node-version }}
registry-url: 'https://npm.pkg.github.com/'
directory: servers/lib
package-name: ${{ needs.get_version.outputs.package-name || '' }}
package-name: ${{ vars.PACKAGE_NAME || '' }}
secrets:
NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand All @@ -159,7 +157,7 @@ jobs:
node-version: ${{ needs.get_version.outputs.node-version }}
registry-url: 'https://registry.npmjs.org'
directory: servers/lib
package-name: ${{ needs.get_version.outputs.package-name || '' }}
package-name: ${{ vars.PACKAGE_NAME || '' }}
secrets:
NPM_TOKEN: ${{ secrets.NPM_TOKEN}}

Expand Down

0 comments on commit 872bd3a

Please sign in to comment.