From 3ce6cbadeba9d93795c971fbc4f5a527656091dd Mon Sep 17 00:00:00 2001 From: Trent Mick Date: Thu, 12 Dec 2024 10:38:11 -0800 Subject: [PATCH] chore: fix incorrect envvar usage in release workflows (#472) --- .github/workflows/release-instrumentation-openai.yml | 5 ++--- .github/workflows/release-mockotlpserver.yml | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release-instrumentation-openai.yml b/.github/workflows/release-instrumentation-openai.yml index 4ef3ef62..96131427 100644 --- a/.github/workflows/release-instrumentation-openai.yml +++ b/.github/workflows/release-instrumentation-openai.yml @@ -29,9 +29,8 @@ jobs: node-version: 'v18.20.4' registry-url: 'https://registry.npmjs.org' - - name: npm publish - working-directory: $PKGDIR - run: npm publish + - run: npm publish + working-directory: ${{ env.PKGDIR }} env: # https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages#publishing-packages-to-the-npm-registry NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/.github/workflows/release-mockotlpserver.yml b/.github/workflows/release-mockotlpserver.yml index 7881e7dd..8d4465e4 100644 --- a/.github/workflows/release-mockotlpserver.yml +++ b/.github/workflows/release-mockotlpserver.yml @@ -29,9 +29,8 @@ jobs: node-version: 'v18.20.4' registry-url: 'https://registry.npmjs.org' - - name: npm publish - working-directory: $PKGDIR - run: npm publish + - run: npm publish + working-directory: ${{ env.PKGDIR }} env: # https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages#publishing-packages-to-the-npm-registry NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}