From 4f70a3c09eae59b73a03f69f8cc11de1509165f1 Mon Sep 17 00:00:00 2001 From: Adam DeHaven Date: Wed, 20 Dec 2023 22:02:28 -0500 Subject: [PATCH] ci: use yarn --- .github/workflows/test.yaml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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