From be2bc76ca96b17d983fa1f5019f3e768abee26ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Let=C3=ADcia=20Aguiar?= Date: Thu, 1 Feb 2024 17:28:05 -0300 Subject: [PATCH 1/2] docs: fix github actions ci example --- docs/guides-ci-setup.md | 26 ++++++++------------------ 1 file changed, 8 insertions(+), 18 deletions(-) diff --git a/docs/guides-ci-setup.md b/docs/guides-ci-setup.md index d98cbe1530..b3643a9580 100644 --- a/docs/guides-ci-setup.md +++ b/docs/guides-ci-setup.md @@ -17,28 +17,18 @@ on: [push, pull_request] jobs: commitlint: - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - - name: Install required dependencies - run: | - apt update - apt install -y sudo - sudo apt install -y git curl - curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash - - sudo DEBIAN_FRONTEND=noninteractive apt install -y nodejs - - name: Print versions - run: | - git --version - node --version - npm --version - npx commitlint --version + ref: ${{ github.event.pull_request.head.sha }} + - uses: actions/setup-node@v3 + with: + node-version: '20' + - name: Install commitlint - run: | - npm install conventional-changelog-conventionalcommits - npm install commitlint@latest + run: npm i -g @commitlint/{cli,config-conventional} - name: Validate current commit (last commit) with commitlint if: github.event_name == 'push' From 395a14c667d4d8b278f331dc9c1c682b0f4e6356 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Let=C3=ADcia=20Aguiar?= Date: Fri, 2 Feb 2024 07:08:16 -0300 Subject: [PATCH 2/2] docs: revert some changes --- docs/guides-ci-setup.md | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/docs/guides-ci-setup.md b/docs/guides-ci-setup.md index b3643a9580..34ca7cb7d6 100644 --- a/docs/guides-ci-setup.md +++ b/docs/guides-ci-setup.md @@ -17,18 +17,23 @@ on: [push, pull_request] jobs: commitlint: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 with: fetch-depth: 0 ref: ${{ github.event.pull_request.head.sha }} - - uses: actions/setup-node@v3 - with: - node-version: '20' + + - name: Install required dependencies + run: | + apt update + apt install -y sudo + sudo apt install -y git curl + curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash - + sudo DEBIAN_FRONTEND=noninteractive apt install -y nodejs - name: Install commitlint - run: npm i -g @commitlint/{cli,config-conventional} + run: npm install --global @commitlint/{cli,config-conventional} - name: Validate current commit (last commit) with commitlint if: github.event_name == 'push'