fix: Fixed reading issue with CONTRIBUTORS.svg file.

This commit is contained in:
jaywcjlove 2022-02-14 10:50:31 +08:00
parent bc49f6f7e7
commit cabc3b036a
2 changed files with 8 additions and 8 deletions

View File

@ -21,18 +21,18 @@ jobs:
filter-author: (小弟调调™|Renovate Bot)
filter: (^[\s]+?[R|r]elease)|(^[R|r]elease)
- name: Generate Contributors Images
uses: jaywcjlove/github-action-contributors@main
with:
filter-author: (renovate\[bot\]|renovate-bot|dependabot\[bot\])
output: CONTRIBUTORS.svg
avatarSize: 42
- run: npm install
- run: npm run build
- run: npm run dash
- run: rm -rf .deploy/linux-command.docset
- name: Generate Contributors Images
uses: jaywcjlove/github-action-contributors@main
with:
filter-author: (renovate\[bot\]|renovate-bot|dependabot\[bot\])
output: .deploy/CONTRIBUTORS.svg
avatarSize: 42
- run: cp -rp CONTRIBUTORS.svg .deploy/
- run: npm install @jsdevtools/npm-publish -g
- run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./package.json

View File

@ -12,7 +12,7 @@ const rootIndexJSPath = path.resolve(process.cwd(), 'template', 'js', 'index.js'
const dataJsonPath = path.resolve(process.cwd(), 'dist', 'data.json');
const dataJsonMinPath = path.resolve(process.cwd(), 'dist', 'data.min.json');
const cssPath = path.resolve(deployDir, 'css', 'index.css');
const contributorsPath = path.resolve(deployDir, 'CONTRIBUTORS.svg');
const contributorsPath = path.resolve(process.cwd(), 'CONTRIBUTORS.svg');
;(async () => {
try {