Skip to content

chore: support Trusted publishing for npm packages - #3318

Merged
Alexzjt merged 5 commits into
nextfrom
chore/TrustNpm
Feb 6, 2026
Merged

Alexzjt merged 5 commits into
nextfrom
chore/TrustNpm

Conversation

@Alexzjt

@Alexzjt Alexzjt commented Feb 6, 2026 •

Copy link
Copy Markdown
Contributor

No description provided.

@github-actions

github-actions Bot commented Feb 6, 2026

Copy link
Copy Markdown
Contributor

你好 @Alexzjt,非常感谢你的贡献.
为了让代码更健壮, 请根据 贡献指南 补充相应单元测试 (文档改动或其他特殊场景除外), 如果有 API 改动, 请修改 相应的文档.
同时请检查 lint 和 test 相关 CI 是否通过, 如果失败, 请点击 [Details] 按钮查看, 并根据日志修复.

Hello, @Alexzjt, Thanks for your contribution. In order to make the code more robust, please add the corresponding unit tests, and update the docs if there are API changes.
At the same time, please check whether the CI related to lint and test passes. If the CI fails, please click [Details] button to check and repair according to the log.

@github-actions github-actions Bot added next 2.0-next 版本的问题 pr(chore) configuration changes labels Feb 6, 2026
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Summary of Changes

Hello @Alexzjt, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request primarily focuses on enhancing the project's continuous integration and release process. It involves updating core semantic-release dependencies to their latest versions and refining the release script to better manage monorepo publishing. Additionally, the documentation for the Vue component example has been improved for clarity regarding CSS imports and application setup.

Highlights

  • Dependency Updates: Upgraded semantic-release to ^25.0.2 and semantic-release-monorepo to ^8.0.2, bringing significant updates to the release automation tools.
  • Release Script Refinement: The release script in package.json now explicitly excludes the @antv/s2-monorepo package, ensuring only individual packages are processed by semantic-release.
  • Vue Documentation Improvement: The packages/s2-vue/README.md was updated to clarify the CSS import location and add a dedicated section for the mounting node in the Vue example.
Changelog
  • package.json
    • Updated semantic-release dependency from ^19.0.5 to ^25.0.2.
    • Updated semantic-release-monorepo dependency from ^7.0.8 to ^8.0.2.
    • Modified the release script to add a filter !@antv/s2-monorepo, preventing the monorepo root from being processed by semantic-release.
  • packages/s2-vue/README.md
    • Moved the s2-vue.min.css import statement in the Vue example from the component setup to the main application entry point (index.ts) for better clarity.
    • Introduced a new documentation section titled '3. 挂载节点' (Mounting Node) with an index.html snippet.
    • Adjusted the numbering of subsequent sections ('渲染' and '结果') to accommodate the new 'Mounting Node' section.
Ignored Files
  • Ignored by pattern: .github/workflows/** (1)
    • .github/workflows/auto-release.yml
Activity
  • The pull request was created by Alexzjt and is categorized as a chore related to CI/workflow improvements. No specific review comments or further activity have been recorded yet.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution. ↩

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request updates the release process to support trusted publishing for npm packages and improves the documentation for @antv/s2-vue. The changes include updating semantic-release to a newer major version, excluding the monorepo root package from the release script, and correcting the CSS import instructions in the Vue component's README. The changes appear correct and beneficial. The dependency update is a significant major version jump, which is appropriate given the goal of supporting new npm publishing features. The documentation update improves clarity for users of the Vue component.

@codecov-commenter

codecov-commenter commented Feb 6, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.70%. Comparing base (ecdc9c8) to head (940814c).
⚠️ Report is 781 commits behind head on next.

Additional details and impacted files
@@            Coverage Diff             @@
##             next    #3318      +/-   ##
==========================================
+ Coverage   75.77%   78.70%   +2.93%     
==========================================
  Files         257      224      -33     
  Lines       11994    12469     +475     
  Branches     2464     2830     +366     
==========================================
+ Hits         9088     9814     +726     
+ Misses       1398      949     -449     
- Partials     1508     1706     +198     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions

github-actions Bot commented Feb 6, 2026 •

Copy link
Copy Markdown
Contributor

Size Change: +2 B (0%)

Total Size: 740 kB

Filename Size Change
./packages/s2-core/dist/s2.min.css 583 B +2 B (+0.34%)
ℹ️ View Unchanged
Filename Size
./packages/s2-core/dist/s2-extends.min.js 208 kB
./packages/s2-core/dist/s2.min.js 308 kB
./packages/s2-react-components/dist/s2-react-components.min.css 2.55 kB
./packages/s2-react-components/dist/s2-react-components.min.js 123 kB
./packages/s2-react/dist/s2-react.min.css 1.3 kB
./packages/s2-react/dist/s2-react.min.js 38.5 kB
./packages/s2-vue/dist/s2-vue.min.css 3.8 kB
./packages/s2-vue/dist/s2-vue.min.js 54.2 kB

compressed-size-action

@Alexzjt
Alexzjt merged commit 71fedbe into next Feb 6, 2026
9 checks passed
@Alexzjt
Alexzjt deleted the chore/TrustNpm branch February 6, 2026 06:03
@Alexzjt

Alexzjt commented Mar 31, 2026

Copy link
Copy Markdown
Contributor Author

🎉 This PR is included in version @antv/s2-vue-v2.2.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Laffery pushed a commit to Laffery/S2 that referenced this pull request Jul 17, 2026
* chore: support Trusted publishing for npm packages

* chore: 更新 lock 文件

* docs: 降低 Vue 组件的顺序
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

next 2.0-next 版本的问题 pr(chore) configuration changes released on @latest

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants