Skip to content

build: Update actions/checkout version to v4 #9

build: Update actions/checkout version to v4

build: Update actions/checkout version to v4 #9

Workflow file for this run

name: build
on:
push:
branches:
- master
jobs:
SonarQube:
name: SonarQube
runs-on: ubuntu-latest
permissions: read-all
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- uses: sonarsource/sonarqube-scan-action@master
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
bump-version:
if: "!contains(github.event.head_commit.message, '[skip-ci]')"
runs-on: [ubuntu-latest]
steps:
- uses: actions/checkout@master
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: |
npm ci
- name: update docs and bump version
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git fetch --tags
latest_tag=$(git describe --tags `git rev-list --tags --max-count=1`)
echo "latest tag: $latest_tag"
new_version=$(npm version patch --message "Chore(version): %s [skip-ci]")
echo "new tag: $new_version"
git push origin master
git push origin $new_version