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

chore: unpublish packages script #7990

Merged
merged 3 commits into from
Apr 1, 2023
Merged

Conversation

thedavidprice
Copy link
Contributor

@thedavidprice thedavidprice commented Mar 31, 2023

cc @jtoar

This is a working script that will unpublish specific, targeted ranges + tags of packages. SAFETY-first built-in ⚠️

We need it (or so we were told) to try and get Core and CLI packages publishing again.

This will only work if and only if:

  1. no other packages in the npm Public Registry depend on
  2. had less than 300 downloads over the last week
  3. has a single owner/maintainer

At this time, I cannot approval to unpublish any packages < 1.0.0. Errors are:

  • too many downloads
  • dependencies

We have now been blocked for
7.
Days.
🤦‍♂️

Current Feels
xFBnkMvpTM6m4

@thedavidprice thedavidprice added the release:chore This PR is a chore (means nothing for users) label Mar 31, 2023
@replay-io
Copy link

replay-io bot commented Apr 1, 2023

16 replays were recorded for f7a033b.

image 0 Failed
image 16 Passed
    requireAuth graphql checks
          ```
          locator.waitFor: Target closed
          =========================== logs ===========================
          waiting for locator('.rw-form-error-title').locator('text=You don\'t have permission to do that') to be visible
          ============================================================
          ```
        </ol>
      </details>
      <li><a href=https://app.replay.io/recording/5b875ac3-86c4-49ca-8015-12f022b74e71>useAuth hook, auth redirects checks</a></li>
      <li><a href=https://app.replay.io/recording/61a142fe-7522-4026-ba98-beec7be3b983>Check that a specific blog post is prerendered</a></li>
      <li><a href=https://app.replay.io/recording/6b2f03d3-2ed1-4031-80ec-a5f8868c0ee1>Check that about is prerendered</a></li>
      <li><a href=https://app.replay.io/recording/f4b9d299-b862-44cf-ae86-d4b89e5d46dd>Check that homepage is prerendered</a></li>
      <li><a href=https://app.replay.io/recording/7e89ad90-e905-4cc1-8c2d-24e43262896c>Check that meta-tags are rendering the correct dynamic data</a></li>
      <li><a href=https://app.replay.io/recording/c7be994c-a613-4ed2-a89d-2ae0bc7944d5>Check that you can navigate from home page to specific blog post</a></li>
      <li><a href=https://app.replay.io/recording/4bd52866-f1c1-4c33-b5e3-1c31536571d3>Waterfall prerendering (nested cells)</a></li>
      <li><a href=https://app.replay.io/recording/550a3b03-ecdf-4c39-b110-7e75c7d0e54a>RBAC: Admin user should be able to delete contacts</a></li>
      <li><a href=https://app.replay.io/recording/4daa2971-8512-458a-a74e-b6033ce2a426>RBAC: Should not be able to delete contact as non-admin user</a></li>
      <li><a href=https://app.replay.io/recording/ae636add-4302-4338-a919-171889f10088>Smoke test with dev server</a></li>
      <li><a href=https://app.replay.io/recording/1e8c7ba1-0650-4d58-87a0-599a6c3c5d76>Smoke test with rw serve</a></li>
      <li><a href=https://app.replay.io/recording/0cacf38c-71a5-42a8-9cee-7ec867806a3f>Loads Cell mocks when Cell is nested in another story</a></li>
      <li><a href=https://app.replay.io/recording/1175fd8c-2de7-4ba7-8867-fc29ecd2a8d9>Loads Cell Stories</a></li>
      <li><a href=https://app.replay.io/recording/d8bd7265-84c7-41d4-bf1e-bd915e32137a>Loads MDX Stories</a></li>
      <li><a href=https://app.replay.io/recording/cbe55fe9-3557-4e33-bd10-2a5732b9ff0e>Mocks current user, and updates UI while dev server is running</a></li>
      

View test run on Replay ↗︎

@thedavidprice thedavidprice requested a review from jtoar April 1, 2023 00:32
@thedavidprice thedavidprice merged commit a1a2ded into main Apr 1, 2023
@thedavidprice thedavidprice deleted the dsp-unpublish-packages-script branch April 1, 2023 00:33
@redwoodjs-bot redwoodjs-bot bot added this to the next-release milestone Apr 1, 2023
@thedavidprice
Copy link
Contributor Author

UPDATE
It seems the downloads are counted for the package and not the versions... so we're 🍞

@jtoar jtoar modified the milestones: next-release, v4.5.0 Apr 2, 2023
dac09 added a commit to dac09/redwood that referenced this pull request Apr 3, 2023
* 'main' of github.com:redwoodjs/redwood: (66 commits)
  update template README
  bumps API build target 16.20; fixtures updated (redwoodjs#7995)
  remove serverless deploy option (redwoodjs#7993)
  chore(deps): update dependency @clerk/types to v3.33.0 (redwoodjs#7991)
  feat(clerk auth): make `getToken` options globally configurable (redwoodjs#7947)
  chore(deps): update dependency firebase to v9.19.1 (redwoodjs#7986)
  fix(deps): update dependency webpack-dev-server to v4.13.2 (redwoodjs#7989)
  fix(deps): update dependency @clerk/clerk-sdk-node to v4.8.1 (redwoodjs#7988)
  fix upgrade.js error message (redwoodjs#7992)
  fix(clerk auth): set auth state to loading while reauthenticating (redwoodjs#7852)
  chore(deps): update dependency @supabase/supabase-js to v2.13.1 (redwoodjs#7981)
  chore(deps): update dependency @clerk/clerk-react to v4.14.1 (redwoodjs#7987)
  chore: unpublish packages script (redwoodjs#7990)
  chore(deps): update dependency nx to v15.9.2 (redwoodjs#7983)
  chore(deps): update dependency @nrwl/nx-cloud to v15.3.5 (redwoodjs#7985)
  fix(deps): update dependency @apollo/client to v3.7.11 (redwoodjs#7984)
  chore(deps): update dependency @tsd/typescript to v5.0.3 (redwoodjs#7978)
  chore(deps): update dependency typescript to v5.0.3 (redwoodjs#7972)
  chore(deps): update dependency @nrwl/nx-cloud to v15.3.4 (redwoodjs#7977)
  chore(deps): update dependency nx to v15.9.1 (redwoodjs#7976)
  ...
jaiakt pushed a commit to jaiakt/redwood that referenced this pull request Apr 5, 2023
* unpublish packages script

* update comment

* fix args
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release:chore This PR is a chore (means nothing for users)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants