Skip to content

Commit fa1d47b

Browse files
committed
Fixup tags
1 parent a20b829 commit fa1d47b

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/main.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1236,14 +1236,24 @@ jobs:
12361236
12371237
- name: Publish to NPM
12381238
env:
1239-
TAG: ${{ startsWith(github.head_ref, 'v') && 'latest' || 'next' }}
1239+
TAG: 'next'
12401240
if: github.ref == 'refs/heads/main'
12411241
run: |
12421242
echo "${TAG}"
12431243
./scripts/npm_publish_lib.sh
12441244
./scripts/npm_publish_shell.sh
12451245
./scripts/npm_publish_react.sh
12461246
1247+
- name: Publish to NPM on tag
1248+
env:
1249+
TAG: 'latest'
1250+
if: ${{ startsWith(github.head_ref, 'v') }}
1251+
run: |
1252+
echo "${TAG}"
1253+
./scripts/npm_publish_lib.sh
1254+
./scripts/npm_publish_shell.sh
1255+
./scripts/npm_publish_react.sh
1256+
12471257
merge_reports:
12481258
name: Merge benchmark reports
12491259
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)