Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm publish fails on latest when next exists #1531

Closed
1 task done
jpraynaud opened this issue Feb 26, 2024 · 0 comments · Fixed by #1545
Closed
1 task done

npm publish fails on latest when next exists #1531

jpraynaud opened this issue Feb 26, 2024 · 0 comments · Fixed by #1545
Assignees
Labels
bug ⚠️ Something isn't working CI/CD 🏭 CI/CD

Comments

@jpraynaud
Copy link
Member

jpraynaud commented Feb 26, 2024

Why

The publication of the npm packages is not working as expected, and fails when the same version exists with a different tag.

What

Update the release process on npm registry, and avoid creating a new version on release, just replace its tags instead.

How

  • Remove the next and add the latest tags to the package during release process in CD
    • npm dist-tag add @mithril-dev/mithril-client-wasm@0.2.0 latest
    • npm dist-tag rm @mithril-dev/mithril-client-wasm@0.2.0 next
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug ⚠️ Something isn't working CI/CD 🏭 CI/CD
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants