Skip to content

Commit

Permalink
chore: sponsorkit (#753)
Browse files Browse the repository at this point in the history
* chore: added sponsors to readme + ci

* chore: ignore folder for linting
  • Loading branch information
alvarosabu authored Jul 1, 2024
1 parent a59d83f commit e630114
Show file tree
Hide file tree
Showing 11 changed files with 1,038 additions and 2 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/sponsorkit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Scheduler

on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
push:
branches: [ master ]

jobs:
update-sponsors:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v3

- name: Set node
uses: actions/setup-node@v4
with:
node-version: lts/*

- run: corepack enable && pnpm i

- name: Update sponsors
run: npm run build
env:
SPONSORKIT_GITHUB_TOKEN: ${{ secrets.SPONSORKIT_GITHUB_TOKEN }}
SPONSORKIT_GITHUB_LOGIN: alvarosabu

- name: Commit
uses: EndBug/add-and-commit@v5
with:
message: "chore: update sponsors.svg"
add: "sponsors.*"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,6 @@ coverage
*.sw?
docs/.vitepress/dist/
docs/.vitepress/cache/

.env
.env.local
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,4 +92,8 @@ pnpm run docs:build

## Sponsors

Be the first to support this project [here](https://github.com/sponsors/alvarosabu) ☺️
<p align="center">
<a target="_blank" href="https://github.com/sponsors/tresjs">
<img alt="sponsors" src="./sponsorkit/sponsors.svg">
</a>
</p>
2 changes: 1 addition & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { tresLintConfig } from '@tresjs/eslint-config'

export default tresLintConfig({
ignores: ['dist', 'node_modules', 'public', '.github', 'docs/blog'],
ignores: ['dist', 'node_modules', 'public', '.github', 'docs/blog', 'sponsorkit'],
}, {
rules: {
'style/max-statements-per-line': 'off',
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@
"rollup-plugin-analyzer": "^4.0.0",
"rollup-plugin-copy": "^3.5.0",
"rollup-plugin-visualizer": "^5.12.0",
"sponsorkit": "^0.14.6",
"three": "^0.165.0",
"unocss": "^0.60.4",
"unplugin": "^1.10.1",
Expand Down
Loading

0 comments on commit e630114

Please sign in to comment.