Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ko_fi: dangreen
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ body:
label: Reproduction
description: |
Please provide issue reproduction.
You can give a link to a repository with the reproduction or make a fork of [this sandbox](https://codesandbox.io/s/github/reactchartjs/react-chartjs-2/tree/master/sandboxes/chart/ref) and reproduce the issue there.
You can give a link to a repository with the reproduction or make a fork of [this sandbox](https://stackblitz.com/github/reactchartjs/react-chartjs-2/tree/master/sandboxes/chart/ref) and reproduce the issue there.
validations:
required: true

Expand Down
5 changes: 2 additions & 3 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@

blank_issues_enabled: false
contact_links:
- name: 🤔 Have a Question?
url: https://stackoverflow.com/questions/tagged/react-chartjs-2
about: Feel free to ask questions on Stack Overflow.
url: https://github.com/reactchartjs/react-chartjs-2/discussions/categories/q-a
about: Check the FAQ at https://react-chartjs-2.js.org/faq/ first, then ask in GitHub Discussions.
- name: 📊 Have a Problem With Chart.js?
url: https://github.com/chartjs/Chart.js/issues
about: react-chartjs-2 is just the wrapper around Chart.js, so if you are experiencing an issue with charts rendering, please create a related issue in Chart.js repository.
5 changes: 3 additions & 2 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": [
"config:base",
":preserveSemverRanges"
"config:recommended",
":preserveSemverRanges",
"helpers:pinGitHubActionDigests"
]
}
87 changes: 45 additions & 42 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,95 +3,98 @@ on:
pull_request:
branches:
- master
# The token of a run only reads: code that a pull request runs cannot push or start a release with it
permissions:
contents: read
jobs:
size:
runs-on: ubuntu-latest
name: size-limit
steps:
- name: Checkout the repository
uses: actions/checkout@v5
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install pnpm
uses: pnpm/action-setup@v4
uses: pnpm/action-setup@73e46992e05b19abd31f2f3c20e0e7370d762115 # v6.1.1
with:
version: 10
version: 12
- name: Install Node.js
uses: actions/setup-node@v6
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: 22
node-version-file: .tool-versions
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Build package
run: pnpm build
- name: Check size
uses: andresz1/size-limit-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
typings:
run: pnpm test:size
editorconfig:
runs-on: ubuntu-latest
name: editorconfig
steps:
- name: Checkout the repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install editorconfig-checker
uses: editorconfig-checker/action-editorconfig-checker@51f63319f592f97930c73d9c46184d20bd206393 # v3.0.0
- name: Check editorconfig
run: editorconfig-checker
package-json:
runs-on: ubuntu-latest
name: typings
name: package.json
steps:
- name: Checkout the repository
uses: actions/checkout@v5
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install pnpm
uses: pnpm/action-setup@v4
uses: pnpm/action-setup@73e46992e05b19abd31f2f3c20e0e7370d762115 # v6.1.1
with:
version: 10
version: 12
- name: Install Node.js
uses: actions/setup-node@v6
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: 22
node-version-file: .tool-versions
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Prebuild
run: pnpm build
- name: Check typings
if: success()
run: pnpm test:typings
# The sandboxes and the website are private apps, not published packages
- name: Check package.json files
run: pnpm --package=@trigen/lint-package-json dlx lint-package-json --ignore sandboxes --ignore website
storybook:
runs-on: ubuntu-latest
name: storybook
steps:
- name: Checkout the repository
uses: actions/checkout@v5
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install pnpm
uses: pnpm/action-setup@v4
uses: pnpm/action-setup@73e46992e05b19abd31f2f3c20e0e7370d762115 # v6.1.1
with:
version: 10
version: 12
- name: Install Node.js
uses: actions/setup-node@v6
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: 22
node-version-file: .tool-versions
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Check storybook
- name: Build storybook
run: pnpm build:storybook
editorconfig:
runs-on: ubuntu-latest
name: editorconfig
steps:
- name: Checkout the repository
uses: actions/checkout@v5
- name: Check editorconfig
uses: editorconfig-checker/action-editorconfig-checker@main
website:
runs-on: ubuntu-latest
name: website
steps:
- name: Checkout the repository
uses: actions/checkout@v5
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install pnpm
uses: pnpm/action-setup@v4
uses: pnpm/action-setup@73e46992e05b19abd31f2f3c20e0e7370d762115 # v6.1.1
with:
version: 10
version: 12
- name: Install Node.js
uses: actions/setup-node@v6
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: 22
node-version-file: .tool-versions
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Install website dependencies
run: pnpm install
working-directory: ./website
- name: Check website
- name: Build website
run: pnpm build
working-directory: ./website
33 changes: 0 additions & 33 deletions .github/workflows/ci.yml

This file was deleted.

18 changes: 16 additions & 2 deletions .github/workflows/commit.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,28 @@
name: Commit
on:
push:
# The token of a run only reads: code that a commit runs cannot push or start a release with it
permissions:
contents: read
jobs:
commitlint:
runs-on: ubuntu-latest
name: commitlint
steps:
- name: Checkout the repository
uses: actions/checkout@v5
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
- name: Install pnpm
uses: pnpm/action-setup@73e46992e05b19abd31f2f3c20e0e7370d762115 # v6.1.1
with:
version: 12
- name: Install Node.js
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version-file: .tool-versions
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Run commitlint
uses: wagoid/commitlint-github-action@v6
run: pnpm commitlint --from=HEAD~1
50 changes: 40 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
name: Release
on:
workflow_dispatch:
inputs:
version:
description: Force specific version
type: string
as:
description: Release type
type: choice
options:
- ''
- major
- minor
- patch
- prerelease
prerelease:
description: Pre-release identifier (e.g. alpha, beta)
type: string
issue_comment:
types: [created, deleted]
push:
Expand All @@ -9,15 +26,17 @@ jobs:
check:
runs-on: ubuntu-latest
name: Context check
permissions:
contents: read
outputs:
continue: ${{ steps.check.outputs.continue }}
workflow: ${{ steps.check.outputs.workflow }}
steps:
- name: Checkout the repository
uses: actions/checkout@v5
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Context check
id: check
uses: trigensoftware/simple-release-action@latest
uses: trigensoftware/simple-release-action@d6c798a10c91ad1e1c2376b4867c2ddfd94d9978 # v3.0.0
with:
workflow: check
github-token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -26,36 +45,47 @@ jobs:
name: Pull request
needs: check
if: needs.check.outputs.workflow == 'pull-request'
# The release branch is pushed and the release pull request is created or updated
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout the repository
uses: actions/checkout@v5
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Create or update pull request
uses: trigensoftware/simple-release-action@latest
uses: trigensoftware/simple-release-action@d6c798a10c91ad1e1c2376b4867c2ddfd94d9978 # v3.0.0
with:
workflow: pull-request
github-token: ${{ secrets.GITHUB_TOKEN }}
bump-version: ${{ inputs.version }}
bump-as: ${{ inputs.as }}
bump-prerelease: ${{ inputs.prerelease }}
release:
runs-on: ubuntu-latest
name: Release
needs: check
if: needs.check.outputs.workflow == 'release'
# The tag and the GitHub release are created; id-token lets npm trusted publishing replace the token once it is set up
permissions:
contents: write
id-token: write
steps:
- name: Checkout the repository
uses: actions/checkout@v5
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install pnpm
uses: pnpm/action-setup@v4
uses: pnpm/action-setup@73e46992e05b19abd31f2f3c20e0e7370d762115 # v6.1.1
with:
version: 10
version: 12
- name: Install Node.js
uses: actions/setup-node@v6
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: 22
node-version-file: .tool-versions
cache: 'pnpm'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: pnpm install
- name: Release
uses: trigensoftware/simple-release-action@latest
uses: trigensoftware/simple-release-action@d6c798a10c91ad1e1c2376b4867c2ddfd94d9978 # v3.0.0
with:
workflow: release
github-token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
Loading
Loading