build: Package action as dist with latest changes
#26
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: "Limit Tags To Distributable Commits" | |
| on: | |
| push: | |
| tags: | |
| - "**" | |
| jobs: | |
| validate-tag: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| ssh-key: "${{ secrets.COMMIT_KEY }}" | |
| - name: Test that the tagged commit includes `dist` | |
| uses: prompt/actions-assert@v2 | |
| with: | |
| assertion: npm://@assertions/directory-exists | |
| expected: dist | |
| - if: failure() | |
| name: Delete invalid tag | |
| uses: prompt/actions-delete-tag@v1 |