Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
stkevintan committed Jan 13, 2024
1 parent ec34418 commit 85dd075
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 85dd075

Please sign in to comment.