Skip to content

Commit

Permalink
ci: use yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdehaven committed Dec 21, 2023
1 parent ecb2646 commit 4f70a3c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 "[email protected]"
git config user.name "Kong UI Bot"
Expand All @@ -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
Expand Down

0 comments on commit 4f70a3c

Please sign in to comment.