Skip to content

add deprecation workflow#977

Closed
Ryang-21 wants to merge 1 commit into
masterfrom
deprecate-package
Closed

add deprecation workflow#977
Ryang-21 wants to merge 1 commit into
masterfrom
deprecate-package

Conversation

@Ryang-21

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings June 17, 2026 20:37

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a GitHub Actions workflow intended to deprecate the @stellar/stellar-base package on npm, aligning the repo with the plan to direct users to @stellar/stellar-sdk.

Changes:

  • Introduces a new Actions workflow to run npm deprecate against @stellar/stellar-base.
  • Configures Node.js 20 and npm registry auth via NPM_TOKEN.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +3 to +5
on:
pull_request:

Comment on lines +16 to +17
- name: Deprecate package on npm
run: npm deprecate "@stellar/stellar-base" "This package is now rolled into @stellar/stellar-sdk. Please use @stellar/stellar-sdk to continue receiving updates and support."
@github-actions

Copy link
Copy Markdown

Size Change: 0 B

Total Size: 3.54 MB

ℹ️ View Unchanged
Filename Size
dist/stellar-base.js 2.62 MB
dist/stellar-base.min.js 926 kB

compressed-size-action

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 864d09766b

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

name: npm deprecate

on:
pull_request:

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Use a non-PR trigger for the registry mutation

When this workflow is present on the base branch, GitHub's pull_request event runs by default on opened/synchronize/reopened PR activity, and for same-repository PRs NPM_TOKEN is available; that means merely opening or pushing to a PR will run npm deprecate @stellar/stellar-base before anything is merged. npm's deprecation docs describe this no-version command form as deprecating the entire package, so this can mark the public package deprecated from review traffic rather than from an intentional release/manual job; use a release, protected-branch push, or workflow_dispatch trigger instead.

Useful? React with 👍 / 👎.

@Ryang-21 Ryang-21 closed this Jun 18, 2026
@Ryang-21 Ryang-21 deleted the deprecate-package branch June 18, 2026 22:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants