From 85dd075de220b32f8bde355c20afaa2296017fa9 Mon Sep 17 00:00:00 2001 From: stkevintan Date: Sat, 13 Jan 2024 17:08:57 +0800 Subject: [PATCH] core@0.1.5+ws@0.0.2 --- .github/workflows/ci.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ab98ca4..0181da6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -44,18 +44,17 @@ jobs: shell: pwsh run: | npm config set provenance true - $commit = git log -1 --pretty=%B + $commit = "$(git log -1 --pretty=%B)" if (!($commit -match "^((core|ws)@[0-9]+\.[0-9]+\.[0-9]+\+?)+$")) { Write-Host "Not a release, skipping publish" exit 0 } + echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc if ($commit -match "core@[0-9]+\.[0-9]+\.[0-9]+") { - echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc pnpm nx run core:publish --ver $($Matches[0]) } if ($commit -match "ws@[0-9]+\.[0-9]+\.[0-9]+") { - echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc pnpm nx run ws:publish --ver $($Matches[0]) } env: