extract tag prefix and account for different latest tag alias in UI r… #4
This file contains 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: Release UI | |
on: | |
push: | |
branches: [main] | |
paths: ['.github/workflows/release-ui.yml', 'ui/**'] | |
jobs: | |
activate: | |
runs-on: ubuntu-latest | |
if: | | |
!startsWith(github.event.head_commit.message, 'Release ') | |
steps: | |
- run: echo ok go | |
build: | |
needs: activate | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '18' | |
- name: Install dependencies | |
working-directory: ./ui | |
run: npm ci | |
- name: Tag and release | |
working-directory: ./ui | |
env: | |
GITHUB_API_TOKEN: ${{ secrets.RELEASE_TOKEN }} | |
run: npx gulp release |