From d1c9390d3971a00681d59eabd2cd3ff6d685c2a1 Mon Sep 17 00:00:00 2001 From: Andrey Nikitin Date: Fri, 27 Oct 2023 16:23:17 +0100 Subject: [PATCH] build: github actions build --- .github/workflows/ci-cd.yml | 44 +++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/ci-cd.yml diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml new file mode 100644 index 00000000..7c8b8456 --- /dev/null +++ b/.github/workflows/ci-cd.yml @@ -0,0 +1,44 @@ +name: CI/CD + +on: + pull_request: # Runs whenever a pull request is created or updated + push: # Runs whenever a commit is pushed to the repository... + branches: [main, develop, hotfix/*] # ...on any of these branches + workflow_dispatch: # Allows you to run this workflow manually from the Actions tab + +concurrency: + group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}' + cancel-in-progress: true + +permissions: + contents: write # publish a GitHub release + pages: write # deploy to GitHub Pages + issues: write # comment on released issues + pull-requests: write # comment on released pull requests + +jobs: + ci-cd: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: wagoid/commitlint-github-action@v5 + if: github.event_name == 'pull_request' + - uses: actions/setup-node@v3 + with: + cache: 'npm' + - name: Info + run: | + cat <