slack-19.0
: init v19 release and backport v20 PRs
#299
Workflow file for this run
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: vtadmin-web build | |
# In specifying the 'paths' property, we need to include the path to this workflow .yml file. | |
# See https://github.community/t/trigger-a-workflow-on-change-to-the-yml-file-itself/17792/4) | |
on: | |
push: | |
paths: | |
- '.github/workflows/vtadmin_web_build.yml' | |
- 'web/vtadmin/**' | |
pull_request: | |
paths: | |
- '.github/workflows/vtadmin_web_build.yml' | |
- 'web/vtadmin/**' | |
permissions: read-all | |
jobs: | |
build: | |
runs-on: | |
group: vitess-ubuntu20 | |
steps: | |
- name: Skip CI | |
run: | | |
if [[ "${{contains( github.event.pull_request.labels.*.name, 'Skip CI')}}" == "true" ]]; then | |
echo "skipping CI due to the 'Skip CI' label" | |
exit 1 | |
fi | |
- name: Check if workflow needs to be skipped | |
id: skip-workflow | |
run: | | |
skip='false' | |
echo Skip ${skip} | |
echo "skip-workflow=${skip}" >> $GITHUB_OUTPUT | |
- uses: actions/checkout@v4 | |
if: steps.skip-workflow.outputs.skip-workflow == 'false' | |
- uses: actions/setup-node@v4 | |
if: steps.skip-workflow.outputs.skip-workflow == 'false' | |
with: | |
# node-version should match package.json | |
node-version: '18.16.0' | |
- name: Install dependencies | |
if: steps.skip-workflow.outputs.skip-workflow == 'false' | |
run: cd ./web/vtadmin && npm ci | |
- name: Build front-end | |
if: steps.skip-workflow.outputs.skip-workflow == 'false' | |
run: cd ./web/vtadmin && npm run build | |
# Cancel pending and in-progress runs of this workflow if a newer ref is pushed to CI. | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true |