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

[INFRA] Create a workflow to unpublish a version of a npm package #18

Open
tbouffard opened this issue Sep 10, 2022 · 0 comments
Open
Labels
chore Build, CI/CD or repository tasks (issues/PR maintenance, environments, ...)

Comments

@tbouffard
Copy link
Member

tbouffard commented Sep 10, 2022

Is your feature request related to a problem? Please describe.
Sometimes we publish package by mistake. For instance, if we publish a release notes in the bpmn-visualization-js repository by mistake, a git tag is created and this triggers a worklfow that publish an erroneous version of the package on npm.
The unpublish must be done manually from a developer environment. This is error prone.

Describe the solution you'd like
Create a worklfow to do the npm unpublish of a single version of a package that can be launched with workflow_dispatch
Inputs

  • package name: default bpmn-visualization
  • version: required, no default
  • dry-run: default to true. This will force collaborators to update the value manually and will prevent running extra unpublish

Describe alternatives you've considered
Continue doing it manually. This is error prone and require npm login setup on developer machine that may not have right to unpublish versions of the package. As we have only 72 hours to unpublish after the publishing date, we need to be reactive and we don't want to depend on people with access right who may not be available at this time.

Additional context

Note: this issue was initially available at https://github.com/process-analytics/github-actions-playground/issues/133

@tbouffard tbouffard added the enhancement New feature or request label Sep 10, 2022
@tbouffard tbouffard transferred this issue from process-analytics/github-actions-playground Sep 27, 2022
@tbouffard tbouffard changed the title [FEAT] Create a workflow to unpublish a version of a npm package [INFRA] Create a workflow to unpublish a version of a npm package Feb 15, 2023
@tbouffard tbouffard added chore Build, CI/CD or repository tasks (issues/PR maintenance, environments, ...) and removed enhancement New feature or request labels Feb 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Build, CI/CD or repository tasks (issues/PR maintenance, environments, ...)
Projects
None yet
Development

No branches or pull requests

1 participant