Skip to content

Commit 84be0d7

Browse files
committed
chore(ci): treat any non-prod dist-tag as canary in publish workflow
The publish workflow had `inputs.dist-tag == 'next'` gates on the bump, commit, and `pnpm publish:next` steps. v4 passes `dist-tag: 'v4'`, which silently skipped all four steps — the workflow reported success but nothing was published. Switching to `!= 'prod'` lets any canary tag (`next`, `v4`, future release lines) flow through. The actual npm dist-tag is still set per branch by the `publish:next` script (`--dist-tag next` on master, `--dist-tag v4` on v4).
1 parent 36022e7 commit 84be0d7

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/publish-to-npm.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,12 @@ jobs:
6464
run: pnpm ci:build
6565

6666
- name: Bump canary versions
67-
if: inputs.dist-tag == 'next'
67+
if: inputs.dist-tag != 'prod'
6868
run: |
6969
pnpm turbo copy --force -- --canary=major --preid=beta
7070
7171
- name: Commit changes
72-
if: inputs.dist-tag == 'next'
72+
if: inputs.dist-tag != 'prod'
7373
uses: EndBug/add-and-commit@v10
7474
id: commit
7575
with:
@@ -90,7 +90,7 @@ jobs:
9090
GH_TOKEN: ${{ secrets.APIFY_SERVICE_ACCOUNT_GITHUB_TOKEN }}
9191

9292
- name: Publish to NPM (@next)
93-
if: inputs.dist-tag == 'next'
93+
if: inputs.dist-tag != 'prod'
9494
uses: nick-fields/retry@v4
9595
with:
9696
timeout_minutes: 10

0 commit comments

Comments
 (0)