diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 4fe6fab5..d443abc0 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -52,11 +52,9 @@ jobs: - name: Test run: pnpm run test - - name: Publish package preview + - name: Publish Package Preview id: package-preview if: github.event_name == 'pull_request' && (github.actor != 'renovate[bot]' || contains(github.event.pull_request.labels.*.name, 'create preview package')) - env: - NPM_TOKEN: ${{ secrets.NPM_TOKEN_PUBLIC_PUBLISH }} run: | git config user.email "konnectx-engineers+kongponents-bot@konghq.com" git config user.name "Kong UI Bot" @@ -65,7 +63,8 @@ jobs: tag="pr-${{ github.event.pull_request.number }}" echo "preid=${preid}" - echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc + + echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN_PUBLIC_PUBLISH }}" > .npmrc # Use yarn to bump the version for the prerelease yarn version --prerelease --preid ${preid} --no-git-tag-version --yes --amend