From fdada9f6e746fa3bb34b94d0b532a30826b6064d Mon Sep 17 00:00:00 2001 From: Adam DeHaven Date: Thu, 21 Dec 2023 12:34:23 -0500 Subject: [PATCH] ci: use pnpm --- .github/workflows/test.yaml | 4 ++-- package.json | 12 +++++++++--- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 455621c3..c3e0aee7 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -68,7 +68,7 @@ jobs: 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 + pnpm version prerelease --preid ${preid} --no-git-tag-version --yes --amend package_version=$(jq -r ".version" package.json) package=@kong/markdown@"${package_version}" @@ -81,7 +81,7 @@ jobs: npm_instructions="" - pkg=$(npm publish --no-git-checks --access public --report-summary --tag "${tag}" | grep "+ "| sed 's/+ //') + pkg=$(pnpm publish --no-git-checks --access public --report-summary --tag "${tag}" | grep "+ "| sed 's/+ //') if [[ -z "${pkg}" ]]; then echo "Error publishing package" diff --git a/package.json b/package.json index 15f56c6f..a477abfa 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,14 @@ "name": "@kong/markdown", "version": "0.0.1", "description": "Kong's open-source markdown renderer and live editor", - "keywords": ["markdown", "markdown-it", "vue", "editor", "markdown editor", "markdown renderer"], + "keywords": [ + "markdown", + "markdown-it", + "vue", + "editor", + "markdown editor", + "markdown renderer" + ], "license": "Apache-2.0", "type": "module", "main": "./dist/kong-markdown.umd.js", @@ -175,8 +182,7 @@ }, "volta": { "node": "18.18.2", - "pnpm": "8.10.5", - "yarn": "1.22.21" + "pnpm": "8.10.5" }, "config": { "commitizen": {