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: