Specify SPONSORKIT_DIR

This commit is contained in:
Remi Rousselet
2022-04-18 09:20:57 +02:00
parent 0f49887d7d
commit 2169b08577
3 changed files with 1406 additions and 13 deletions

View File

@ -25,6 +25,7 @@ jobs:
env:
SPONSORKIT_GITHUB_TOKEN: ${{ secrets.SPONSORS_TOKEN }}
SPONSORKIT_GITHUB_LOGIN: rrousselGit
SPONSORKIT_DIR: "./sponsorkit"
- name: Commit
uses: EndBug/add-and-commit@v4

View File

@ -1,28 +1,23 @@
/* eslint-disable @typescript-eslint/no-unused-vars */
import { defineConfig, presets } from "sponsorkit";
import { defineConfig, presets } from 'sponsorkit'
export default defineConfig({
// Providers configs
github: {
login: "rrousselGit",
},
// Rendering configs
width: 800,
formats: ["json", "svg", "png"],
tiers: [
{
title: "Backers",
// to replace the entire tier rendering
// compose: (composer, tierSponsors, config) => {
// composer.addRaw(
// '<-- custom svg -->',
// )
// },
preset: presets.base,
},
{
title: "Sponsors",
monthlyDollars: 24,
monthlyDollars: 10,
preset: presets.medium,
// to insert custom elements after the tier block
composeAfter: (composer, tierSponsors, config) => {
composer.addSpan(10);
},
},
{
title: "Silver Sponsors",

1397
yarn.lock Normal file

File diff suppressed because it is too large Load Diff