diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5f7a128aa3..a9f047dfcb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,12 +16,27 @@ jobs: - name: Generate Changelog id: changelog - uses: jaywcjlove/changelog-generator@v1.4.2 + uses: jaywcjlove/changelog-generator@v1.4.3 with: token: ${{ secrets.GITHUB_TOKEN }} filter-author: (jaywcjlove|小弟调调™|dependabot\[bot\]|Renovate Bot) filter: (^[\s]+?[R|r]elease)|(^[R|r]elease) + + - run: npm install + - run: npm run build + + - run: npm install @jsdevtools/npm-publish -g + - run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./package.json + + - run: npm run dash + + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./.deploy + - name: Create Release uses: ncipollo/release-action@v1 with: @@ -36,18 +51,5 @@ jobs: ``` ${{ steps.changelog.outputs.compareurl }} - ${{ steps.changelog.outputs.changelog }} - - - run: npm install - - run: npm run build - - - run: npm install @jsdevtools/npm-publish -g - - run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./package.json - - - run: npm run dash - - - name: Deploy - uses: peaceiris/actions-gh-pages@v3 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./.deploy + + ${{ steps.changelog.outputs.changelog }} \ No newline at end of file