Skip to content

Commit 00f4293

Browse files
committed
IP: Update npm publish
1 parent f98be8c commit 00f4293

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

.github/workflows/deploy-production.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
- name: Read versions
4646
id: version-check
4747
run: |
48-
OLD=$(git show HEAD~1:packages/ui/package.json | jq -r .version)
48+
OLD=$(npm view @synergycodes/axiom version 2>/dev/null || echo "0.0.0")
4949
NEW=$(jq -r .version packages/ui/package.json)
5050
echo "old=$OLD" >> $GITHUB_OUTPUT
5151
echo "new=$NEW" >> $GITHUB_OUTPUT
@@ -63,11 +63,15 @@ jobs:
6363
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
6464
6565
cd packages/ui
66-
echo "Publishing @synergycodes/axiom@${{ steps.version-check.outputs.new }} with 'beta' tag…"
67-
pnpm publish --access public --tag beta --no-git-checks
68-
69-
echo "Adding 'latest' dist-tag to @synergycodes/axiom@${{ steps.version-check.outputs.new }}…"
70-
pnpm dist-tag add @synergycodes/axiom@${{ steps.version-check.outputs.new }} latest
66+
67+
# Check if version contains "beta"
68+
# if [[ "${{ steps.version-check.outputs.new }}" == *"beta"* ]]; then
69+
# echo "Publishing @synergycodes/axiom@${{ steps.version-check.outputs.new }} with 'beta' tag…"
70+
# pnpm publish --tag beta --access public --no-git-checks
71+
# else
72+
# echo "Publishing @synergycodes/axiom@${{ steps.version-check.outputs.new }} with 'latest' tag…"
73+
# fi
74+
pnpm publish --access public --no-git-checks
7175
7276
rm -f ~/.npmrc
7377
else

0 commit comments

Comments
 (0)