Skip to content

Commit cabc3b0

Browse files
committed
fix: Fixed reading issue with CONTRIBUTORS.svg file.
1 parent bc49f6f commit cabc3b0

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,19 @@ jobs:
2121
filter-author: (小弟调调™|Renovate Bot)
2222
filter: (^[\s]+?[R|r]elease)|(^[R|r]elease)
2323

24-
25-
- run: npm install
26-
- run: npm run build
27-
- run: npm run dash
28-
- run: rm -rf .deploy/linux-command.docset
29-
3024
- name: Generate Contributors Images
3125
uses: jaywcjlove/github-action-contributors@main
3226
with:
3327
filter-author: (renovate\[bot\]|renovate-bot|dependabot\[bot\])
34-
output: .deploy/CONTRIBUTORS.svg
28+
output: CONTRIBUTORS.svg
3529
avatarSize: 42
3630

31+
- run: npm install
32+
- run: npm run build
33+
- run: npm run dash
34+
- run: rm -rf .deploy/linux-command.docset
35+
- run: cp -rp CONTRIBUTORS.svg .deploy/
36+
3737
- run: npm install @jsdevtools/npm-publish -g
3838
- run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./package.json
3939

build/build.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const rootIndexJSPath = path.resolve(process.cwd(), 'template', 'js', 'index.js'
1212
const dataJsonPath = path.resolve(process.cwd(), 'dist', 'data.json');
1313
const dataJsonMinPath = path.resolve(process.cwd(), 'dist', 'data.min.json');
1414
const cssPath = path.resolve(deployDir, 'css', 'index.css');
15-
const contributorsPath = path.resolve(deployDir, 'CONTRIBUTORS.svg');
15+
const contributorsPath = path.resolve(process.cwd(), 'CONTRIBUTORS.svg');
1616

1717
;(async () => {
1818
try {

0 commit comments

Comments
 (0)