released v1.10.1 #142
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| build: | |
| if: github.repository == 'jaywcjlove/refs-cli' | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| id-token: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| registry-url: 'https://registry.npmjs.org' | |
| - run: npm install | |
| - run: npm run build | |
| - run: npm run doc | |
| - name: Generate Contributors Images | |
| uses: jaywcjlove/github-action-contributors@main | |
| id: contributors | |
| with: | |
| filter-author: (renovate\[bot\]|renovate-bot|dependabot\[bot\]) | |
| avatarSize: 42 | |
| - name: Modify README.md | |
| uses: jaywcjlove/github-action-modify-file-content@main | |
| with: | |
| path: README.md | |
| trim_whitespace: false | |
| body: ${{steps.contributors.outputs.htmlList}} | |
| - name: Create Tag | |
| id: create_tag | |
| uses: jaywcjlove/create-tag-action@main | |
| with: | |
| package-path: ./package.json | |
| - name: Deploy | |
| uses: peaceiris/actions-gh-pages@v4 | |
| with: | |
| commit_message: ${{ github.event.head_commit.message }} | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./dist | |
| - name: Generate Changelog | |
| id: changelog | |
| uses: jaywcjlove/changelog-generator@main | |
| with: | |
| filter-author: (小弟调调™) | |
| filter: (^[\s]+?[R|r]elease)|(^[R|r]elease) | |
| - name: Create Release | |
| uses: jaywcjlove/create-tag-action@main | |
| if: steps.create_tag.outputs.successful | |
| with: | |
| package-path: ./package.json | |
| version: ${{steps.create_tag.outputs.version}} | |
| release: true | |
| prerelease: false | |
| body: | | |
| [](https://jaywcjlove.github.io/#/sponsor) | |
| Documentation ${{ steps.changelog.outputs.tag }}: https://raw.githack.com/jaywcjlove/refs-cli/${{ steps.changelog.outputs.gh-pages-short-hash }}/index.html | |
| Comparing Changes: ${{ steps.changelog.outputs.compareurl }} | |
| ${{ steps.changelog.outputs.changelog }} | |
| - run: npm publish --access public --provenance | |
| name: 📦 refs-cli publish to NPM | |
| continue-on-error: true | |
| env: | |
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |