Branch Deleted #2719
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: Branch Deleted | |
| on: delete | |
| jobs: | |
| remove-snapshot-tag: | |
| if: ${{ github.event.ref_type == 'branch' && startsWith(github.event.ref, 'snapshot/') }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - uses: perses/github-actions@v0.11.0 | |
| - uses: ./.github/perses-ci/actions/setup_environment | |
| with: | |
| enable_npm: true | |
| nvmrc_path: "./ui/.nvmrc" | |
| - name: Remove npm snapshot tag | |
| run: ./scripts/ui_release.sh --remove-snapshot "${{ github.event.ref }}" | |
| env: | |
| # The setup-node action writes an .npmrc file with this env variable | |
| # as the placeholder for the auth token | |
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |