Repository navigation
Fix#: traditional version push #9
Workflow file for this run
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: "Publish Action on tag creation" | |
| on: | |
| push: | |
| jobs: | |
| lint-action: | |
| name: "Lint Action for syntax" | |
| runs-on: ubuntu-slim | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: "Checkout repository" | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: "Install dependencies" | |
| run: npm ci | |
| - name: "Run linting" | |
| run: npm run lint | |
| tag-release: | |
| name: "Create release from tag" | |
| runs-on: ubuntu-slim | |
| if: ${{ github.ref_type == 'tag' }} | |
| needs: | |
| - lint-action | |
| permissions: | |
| contents: read | |
| packages: write | |
| id-token: write | |
| steps: | |
| - name: "Checkout repository" | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: 'Publish release to GitHub' | |
| uses: softprops/action-gh-release@b4309332981a82ec1c5618f44dd2e27cc8bfbfda # v3.0.0 | |
| with: | |
| generate_release_notes: true |