fix: update worklow #7
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: Automated Workflow | |
| on: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| about: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: 16 | |
| - name: Jaid/action-sync-node-meta | |
| uses: jaid/action-sync-node-meta@v1.4.0 | |
| with: | |
| direction: overwrite-github | |
| githubToken: "${{ secrets.GITHUB }}" | |
| release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 # Required for the latest semantic-release plugins | |
| - name: Semantic Release | |
| uses: cycjimmy/semantic-release-action@v4 # Update to v4 for better Node 20+ support | |
| id: semantic | |
| with: | |
| extra_plugins: | | |
| @semantic-release/changelog | |
| @semantic-release/git | |
| @semantic-release/github | |
| env: | |
| GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" # Use the built-in token if possible | |
| NPM_TOKEN: "${{ secrets.NPM_TOKEN }}" | |
| outputs: | |
| new_release_published: "${{ steps.semantic.outputs.new_release_published }}" | |
| new_release_version: "${{ steps.semantic.outputs.new_release_version }}" | |