Skip to content

Commit 0878ad9

Browse files
committed
Clean up prerelease tags automatically
1 parent 76568bf commit 0878ad9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,10 @@ jobs:
8888
- name: Publish to npm
8989
run: |
9090
if [ "${{ steps.version-check.outputs.is_prerelease }}" == "true" ]; then
91-
echo "Publishing prerelease without a tag"
92-
npm publish --provenance --no-tag
91+
echo "Publishing untagged prerelease"
92+
npm publish --provenance --tag test
93+
# We have to publish with a tag (so we use 'test') but we can clean it up:
94+
npm dist-tag rm mockttp test --silent
9395
else
9496
echo "Publishing stable release with 'latest' tag"
9597
npm publish --provenance

0 commit comments

Comments
 (0)