From 1f7823375d2758aa89efd7db3e3996a3c8d6f870 Mon Sep 17 00:00:00 2001 From: Adam DeHaven Date: Wed, 20 Dec 2023 22:22:51 -0500 Subject: [PATCH] ci: token --- .github/workflows/test.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index d443abc0..38d6f26f 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -55,6 +55,8 @@ jobs: - 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" @@ -64,7 +66,7 @@ jobs: echo "preid=${preid}" - echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN_PUBLIC_PUBLISH }}" > .npmrc + echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc # Use yarn to bump the version for the prerelease yarn version --prerelease --preid ${preid} --no-git-tag-version --yes --amend