Skip to content

Commit

Permalink
ci: cache pnpm deps
Browse files Browse the repository at this point in the history
  • Loading branch information
northword committed Feb 6, 2024
1 parent 481b029 commit 82bc49b
Show file tree
Hide file tree
Showing 5 changed files with 1,568 additions and 13 deletions.
25 changes: 13 additions & 12 deletions .github/workflows/contributors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,25 +12,26 @@ jobs:
steps:
- uses: actions/checkout@v3

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

- name: Install pnpm
uses: pnpm/action-setup@v2.2.2
with:
version: 7
version: 8

- name: Set node
uses: actions/setup-node@v3
with:
node-version: 20
cache: pnpm

# - name: Install deps
# run: pnpm install
- name: Install deps
run: pnpm install

- name: Run SVG generation script
run: |
pnpx make-github-contributor-svg -t ${{ secrets.GITHUB_TOKEN }} -o zotero-chinese -r wiki
pnpx make-github-contributor-svg -t ${{ secrets.GITHUB_TOKEN }} -o zotero-chinese -r zotero-plugins
pnpx make-github-contributor-svg -t ${{ secrets.GITHUB_TOKEN }} -o l0o0 -r translators_CN
pnpx make-github-contributor-svg -t ${{ secrets.GITHUB_TOKEN }} -o redleafnew -r Chinese-STD-GB-T-7714-related-csl
pnpm exec gh-contrib-svg -t ${{ secrets.GITHUB_TOKEN }} -o zotero-chinese -r wiki
pnpm exec gh-contrib-svg -t ${{ secrets.GITHUB_TOKEN }} -o zotero-chinese -r zotero-plugins
pnpm exec gh-contrib-svg -t ${{ secrets.GITHUB_TOKEN }} -o l0o0 -r translators_CN
pnpm exec gh-contrib-svg -t ${{ secrets.GITHUB_TOKEN }} -o redleafnew -r Chinese-STD-GB-T-7714-related-csl
- name: Commit
uses: EndBug/add-and-commit@v4
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
# .github
# Zotero 中文社区

本仓库存储 Zotero 中文社区的 GitHub 信息。

组织首页介绍存储于 `profile/README.md`,社区贡献者列表由 GitHub Action 每日自动生成,存储于 `.github-contributors/*.svg`
15 changes: 15 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "zotero-chinese",
"version": "0.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"make-github-contributor-svg": "^1.0.2"
}
}
Loading

0 comments on commit 82bc49b

Please sign in to comment.