diff --git a/.github/workflows/check-dist.yml b/.github/workflows/check-dist.yml index 5798200..8857945 100644 --- a/.github/workflows/check-dist.yml +++ b/.github/workflows/check-dist.yml @@ -10,10 +10,12 @@ name: Check Transpiled JavaScript on: + pull_request: + branches: + - main push: branches: - main - pull_request: permissions: contents: read diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dbc263b..c6d2861 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,6 +2,8 @@ name: Continuous Integration on: pull_request: + branches: + - main push: branches: - main diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 6ad7cb6..5f8e060 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -1,26 +1,26 @@ name: CodeQL on: - push: + pull_request: branches: - main - pull_request: + push: branches: - main schedule: - cron: '31 7 * * 3' +permissions: + actions: read + checks: write + contents: read + security-events: write + jobs: analyze: name: Analyze runs-on: ubuntu-latest - permissions: - actions: read - checks: write - contents: read - security-events: write - strategy: fail-fast: false matrix: diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index dafff7b..7b72f4b 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -2,6 +2,8 @@ name: Lint Codebase on: pull_request: + branches: + - main push: branches: - main @@ -20,6 +22,8 @@ jobs: - name: Checkout id: checkout uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Setup Node.js id: setup-node @@ -34,7 +38,7 @@ jobs: - name: Lint Codebase id: super-linter - uses: super-linter/super-linter/slim@v5 + uses: super-linter/super-linter/slim@v6 env: DEFAULT_BRANCH: main FILTER_REGEX_EXCLUDE: dist/**/* diff --git a/script/release b/script/release index d67bfb3..1ae8d07 100755 --- a/script/release +++ b/script/release @@ -28,9 +28,9 @@ BLUE='\033[0;34m' latest_tag=$(git describe --tags "$(git rev-list --tags --max-count=1)") if [[ -z "$latest_tag" ]]; then - # There are no existing release tags - echo -e "No tags found (yet) - Continue to create and push your first tag" - latest_tag="[unknown]" + # There are no existing release tags + echo -e "No tags found (yet) - Continue to create and push your first tag" + latest_tag="[unknown]" fi # Display the latest release tag @@ -42,11 +42,11 @@ read -r -p 'Enter a new release tag (vX.X.X format): ' new_tag # Validate the new release tag tag_regex='v[0-9]+\.[0-9]+\.[0-9]+$' if echo "$new_tag" | grep -q -E "$tag_regex"; then - echo -e "Tag: ${BLUE}$new_tag${OFF} is valid" + echo -e "Tag: ${BLUE}$new_tag${OFF} is valid" else - # Release tag is not `vX.X.X` format - echo -e "Tag: ${BLUE}$new_tag${OFF} is ${RED}not valid${OFF} (must be in vX.X.X format)" - exit 1 + # Release tag is not `vX.X.X` format + echo -e "Tag: ${BLUE}$new_tag${OFF} is ${RED}not valid${OFF} (must be in vX.X.X format)" + exit 1 fi # Tag the new release