From 872bd3a4db63a7b18946114ad787d54e4ff749fc Mon Sep 17 00:00:00 2001 From: nichlaes Date: Thu, 31 Oct 2024 13:17:20 +0100 Subject: [PATCH] changed to vars --- .github/workflows/lib-ms.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/lib-ms.yml b/.github/workflows/lib-ms.yml index e74ef9108..6d5b3839e 100644 --- a/.github/workflows/lib-ms.yml +++ b/.github/workflows/lib-ms.yml @@ -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: | @@ -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 }} @@ -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}}