chore: bump version to 6.0.0 #83
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: "AutoPublish" | |
| on: | |
| push: | |
| branches: | |
| - "master" | |
| jobs: | |
| auto-publish: | |
| name: "AutoPublish on master" | |
| runs-on: ubuntu-latest | |
| if: "!startsWith(github.event.head_commit.message, 'chore: bump version to')" | |
| steps: | |
| - name: "Generate GitHub App token" | |
| id: app-token | |
| uses: "actions/create-github-app-token@v2" | |
| with: | |
| app-id: ${{ secrets.GH_APP_ID }} | |
| private-key: ${{ secrets.GH_APP_PRIVATE_KEY }} | |
| - name: "Checkout source code" | |
| uses: "actions/checkout@v5" | |
| with: | |
| token: ${{ steps.app-token.outputs.token }} | |
| - name: "Automated Release" | |
| uses: "phips28/gh-action-bump-version@master" | |
| with: | |
| commit-message: 'chore: bump version to {{version}}' | |
| env: | |
| GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: '18' | |
| registry-url: 'https://registry.npmjs.org' | |
| - name: "Install dependencies" | |
| run: npm install | |
| - run: npm publish --access public | |
| env: | |
| NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} |