diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 51bab3ae20..a46ff895af 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/build/build.mjs b/build/build.mjs index c8aaa2ddce..cec0024695 100644 --- a/build/build.mjs +++ b/build/build.mjs @@ -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 {