Skip to content

Commit 189af39

Browse files
cameroncookeclaude
andcommitted
ci(release): Add npm tag for workflow_dispatch dry-run publish
Use an explicit npm tag during manual dry-run publish so prerelease test versions do not fail workflow_dispatch runs. Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 4ba33a2 commit 189af39

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,13 @@ jobs:
8888
if: github.event_name == 'workflow_dispatch'
8989
run: |
9090
echo "🧪 Testing package creation (dry run)"
91-
npm publish --dry-run --access public
91+
VERSION="${{ steps.get_version.outputs.VERSION }}"
92+
if [[ "$VERSION" == *"-"* ]]; then
93+
NPM_TAG="next"
94+
else
95+
NPM_TAG="latest"
96+
fi
97+
npm publish --dry-run --access public --tag "$NPM_TAG"
9298
9399
- name: Publish to NPM (production releases only)
94100
if: github.event_name == 'push'

0 commit comments

Comments
 (0)