Skip to content

Commit 3cd6f5c

Browse files
committed
update publish
1 parent bfd5967 commit 3cd6f5c

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/publish.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,14 @@ jobs:
2727
node-version: 24
2828
registry-url: 'https://registry.npmjs.org'
2929
- run: bun install --frozen-lockfile
30-
- name: Verify Harmony build tools
31-
run: |
32-
command -v hvigorw >/dev/null 2>&1 || (echo "Missing hvigorw in the Harmony container image." >&2; exit 1)
33-
command -v ohpm >/dev/null 2>&1 || (echo "Missing ohpm in the Harmony container image." >&2; exit 1)
3430
- name: Build Harmony HAR
3531
run: npm run build:harmony-har -- --build-mode release
3632
- name: Verify Harmony HAR artifact
3733
run: test -f harmony/pushy.har
38-
- run: npm publish --provenance --access public
34+
- name: Publish to npm
35+
run: |
36+
if [[ "${{ github.event.release.tag_name }}" == *"beta"* ]]; then
37+
npm publish --provenance --access public --tag beta
38+
else
39+
npm publish --provenance --access public
40+
fi

0 commit comments

Comments
 (0)