From f75fbf32d5435c6d2c6cf5fab03d0cc570a6b99b Mon Sep 17 00:00:00 2001 From: Ahmad <103906421+ahmadk953@users.noreply.github.com> Date: Fri, 13 Jun 2025 23:41:40 -0400 Subject: [PATCH 1/4] chore: bump yarn version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index c92098b..1a19624 100644 --- a/package.json +++ b/package.json @@ -50,5 +50,5 @@ "typescript": "^5.8.3", "typescript-transform-paths": "^3.5.5" }, - "packageManager": "yarn@4.9.1" + "packageManager": "yarn@4.9.2" } From 1360243294b573f9c054de5b04c179217bfe6c21 Mon Sep 17 00:00:00 2001 From: Ahmad <103906421+ahmadk953@users.noreply.github.com> Date: Fri, 13 Jun 2025 23:44:49 -0400 Subject: [PATCH 2/4] ci: added automatic changelog generation --- .github/workflows/release.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..42de62c --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,35 @@ +name: Automatic Release Changelog + +permissions: + contents: write + +on: + push: + tags: + - 'v*' + +jobs: + release: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [23.x] + + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Configure Corepack + run: corepack enable + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + cache: yarn + + - run: npx changelogithub + env: + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} \ No newline at end of file From beefc6aac0123aa3469ee967c57f739bf82e9395 Mon Sep 17 00:00:00 2001 From: Ahmad <103906421+ahmadk953@users.noreply.github.com> Date: Fri, 13 Jun 2025 23:56:57 -0400 Subject: [PATCH 3/4] ci: update ci actions --- .github/workflows/commitlint.yml | 6 +++--- .github/workflows/dependency-review.yml | 12 +++--------- .github/workflows/eslint.yml | 11 ++++++++++- .github/workflows/npm-build-and-compile.yml | 4 ++-- .github/workflows/release.yml | 10 +++++----- 5 files changed, 23 insertions(+), 20 deletions(-) diff --git a/.github/workflows/commitlint.yml b/.github/workflows/commitlint.yml index 47f2e51..069b19a 100644 --- a/.github/workflows/commitlint.yml +++ b/.github/workflows/commitlint.yml @@ -12,7 +12,7 @@ jobs: strategy: matrix: - node-version: [23.x] + node-version: [24.x] steps: - uses: actions/checkout@v4 @@ -35,8 +35,8 @@ jobs: - name: Validate current commit (last commit) with commitlint if: github.event_name == 'push' - run: npx commitlint --last --verbose + run: yarn dlx commitlint --last --verbose - name: Validate PR commits with commitlint if: github.event_name == 'pull_request' - run: npx commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose + run: yarn dlx commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose diff --git a/.github/workflows/dependency-review.yml b/.github/workflows/dependency-review.yml index 0d4a013..f696736 100644 --- a/.github/workflows/dependency-review.yml +++ b/.github/workflows/dependency-review.yml @@ -1,10 +1,4 @@ -# Dependency Review Action -# -# This Action will scan dependency manifest files that change as part of a Pull Request, surfacing known-vulnerable versions of the packages declared or updated in the PR. Once installed, if the workflow run is marked as required, PRs introducing known-vulnerable packages will be blocked from merging. -# -# Source repository: https://github.com/actions/dependency-review-action -# Public documentation: https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/about-dependency-review#dependency-review-enforcement -name: 'Dependency Review' +name: Dependency Review on: [pull_request] permissions: @@ -14,7 +8,7 @@ jobs: dependency-review: runs-on: ubuntu-latest steps: - - name: 'Checkout Repository' + - name: Checkout Repository uses: actions/checkout@v4 - - name: 'Dependency Review' + - name: Dependency Review uses: actions/dependency-review-action@v4 diff --git a/.github/workflows/eslint.yml b/.github/workflows/eslint.yml index 60dcf23..21627d5 100644 --- a/.github/workflows/eslint.yml +++ b/.github/workflows/eslint.yml @@ -16,6 +16,9 @@ jobs: contents: read security-events: write actions: read + strategy: + matrix: + node-version: [24.x] steps: - name: Checkout code uses: actions/checkout@v4 @@ -23,11 +26,17 @@ jobs: - name: Configure Corepack run: corepack enable + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + cache: yarn + - name: Install Dependencies run: yarn install - name: Run ESLint - run: npx eslint ./src + run: yarn dlx eslint ./src --config eslint.config.mjs --format @microsoft/eslint-formatter-sarif --output-file eslint-results.sarif diff --git a/.github/workflows/npm-build-and-compile.yml b/.github/workflows/npm-build-and-compile.yml index c266195..46bfe9a 100644 --- a/.github/workflows/npm-build-and-compile.yml +++ b/.github/workflows/npm-build-and-compile.yml @@ -1,4 +1,4 @@ -name: NodeJS Build and Compile +name: NodeJS Build permissions: contents: read @@ -15,7 +15,7 @@ jobs: strategy: matrix: - node-version: [23.x] + node-version: [24.x] steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 42de62c..d1d60af 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,4 +1,4 @@ -name: Automatic Release Changelog +name: Generate Changelog permissions: contents: write @@ -6,7 +6,7 @@ permissions: on: push: tags: - - 'v*' + - 'v*.*.*' jobs: release: @@ -14,7 +14,7 @@ jobs: strategy: matrix: - node-version: [23.x] + node-version: [24.x] steps: - uses: actions/checkout@v4 @@ -30,6 +30,6 @@ jobs: node-version: ${{ matrix.node-version }} cache: yarn - - run: npx changelogithub + - run: yarn dlx changelogithub env: - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} \ No newline at end of file + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} From 79b8353e1b2649dc0d109c5d73667ea28e078489 Mon Sep 17 00:00:00 2001 From: Ahmad <103906421+ahmadk953@users.noreply.github.com> Date: Sat, 14 Jun 2025 00:22:08 -0400 Subject: [PATCH 4/4] ci: update ci actions --- .github/workflows/release.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d1d60af..8333c32 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,6 +30,7 @@ jobs: node-version: ${{ matrix.node-version }} cache: yarn - - run: yarn dlx changelogithub + - name: Generate Changelog + run: yarn dlx changelogithub env: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}