chore(deps): update commitlint monorepo to v17.7.1 - autoclosed #111
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: pull-request-main | |
on: | |
pull_request: | |
branches: | |
- main | |
types: [opened, edited, synchronize] | |
jobs: | |
label: | |
runs-on: ubuntu-latest | |
if: ${{github.event.action != 'synchronize'}} | |
steps: | |
- uses: bcoe/conventional-release-labels@v1 | |
with: | |
type_labels: '{"feat": "feature", "fix": "fix", "breaking": "breaking","ci":"ci","docs":"docs"}' | |
build: | |
runs-on: ubuntu-latest | |
if: ${{github.event.action != 'edited'}} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '16' | |
#- run: yarn test | |
- run: yarn | |
- run: yarn build | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: dist | |
path: dist | |
docker: | |
runs-on: ubuntu-latest | |
needs: build | |
if: contains(github.event.pull_request.labels.*.name, 'deploy') | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
- uses: docker/setup-qemu-action@v2 | |
- uses: docker/setup-buildx-action@v2 | |
- uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- uses: actions/download-artifact@v3 | |
with: | |
name: dist | |
path: dist | |
- run: tar -cvf build.tar ./dist | |
- name: Computing Docker image tags | |
id: step1 | |
env: | |
COMMIT_SHA: ${{github.event.pull_request.head.sha}} | |
run: | | |
OUT=$GITHUB_REPOSITORY:pull-${COMMIT_SHA::8} | |
OUT=$(echo "$OUT" | awk '{print tolower($0)}') | |
echo "docker_tags=$OUT" >> "$GITHUB_OUTPUT" | |
- uses: docker/build-push-action@v4 | |
with: | |
push: true | |
platforms: linux/amd64,linux/arm64 | |
context: . | |
tags: ${{ steps.step1.outputs.docker_tags }} | |
file: Dockerfile |