-
Notifications
You must be signed in to change notification settings - Fork 5
Harden React Native release publication #36
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
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| name: Bootstrap missing npm package | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| inputs: | ||
| package: | ||
| description: Exact missing fixed-set package@version to publish | ||
| required: true | ||
| type: string | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| concurrency: | ||
| group: charts-npm-bootstrap | ||
| cancel-in-progress: false | ||
|
|
||
| jobs: | ||
| bootstrap: | ||
| name: Bootstrap npm package | ||
| if: github.repository == 'TanStack/charts' && github.event_name == 'workflow_dispatch' && github.ref_type == 'branch' && github.ref == 'refs/heads/main' | ||
| runs-on: ubuntu-24.04 | ||
| timeout-minutes: 20 | ||
| environment: npm-bootstrap | ||
| permissions: | ||
| contents: read | ||
| id-token: write | ||
|
|
||
| steps: | ||
| - name: Checkout exact main revision | ||
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | ||
| with: | ||
| persist-credentials: false | ||
| ref: ${{ github.sha }} | ||
|
|
||
| - name: Setup | ||
| uses: ./.github/actions/setup | ||
|
|
||
| - name: Build and identify the sole missing package | ||
| id: prepare | ||
| env: | ||
| BOOTSTRAP_PACKAGE_SPEC: ${{ inputs.package }} | ||
| RELEASE_REVISION: ${{ github.sha }} | ||
| run: node scripts/bootstrap-release-package.mjs prepare | ||
|
|
||
| - name: Publish the confirmed package | ||
| if: steps.prepare.outputs.publish_needed == 'true' | ||
| env: | ||
| BOOTSTRAP_PACKAGE_SPEC: ${{ inputs.package }} | ||
| NODE_AUTH_TOKEN: ${{ secrets.NPM_BOOTSTRAP_TOKEN }} | ||
| RELEASE_REVISION: ${{ github.sha }} | ||
| run: node scripts/bootstrap-release-package.mjs publish |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| export { renderChartSvg } from '@tanstack/charts/universal' | ||
| export { Chart } from '@tanstack/react-native-charts' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📐 Maintainability & Code Quality | 🟠 Major | ⚡ Quick win
Update the source documentation instead of this generated copy.
These changes are in
packages/charts-core/docs/installation.md. Updatedocs/installation.md, then runpnpm docs:syncto regenerate this file. Direct edits can be overwritten and can leave the published documentation out of sync.As per coding guidelines, author public documentation only in the root
docs/tree; do not directly editpackages/charts-core/docsbecause those copies are generated bypnpm docs:sync.Also applies to: 83-83, 100-100
🤖 Prompt for AI Agents
Source: Coding guidelines