From 5daadc95f8364c10a986f2627c844812e003da53 Mon Sep 17 00:00:00 2001 From: Denis Rossati Ramos Date: Mon, 30 Mar 2026 15:24:36 -0300 Subject: [PATCH 1/7] Use reusable workflows --- .github/workflows/deploy-release.yaml | 60 +++----------- .github/workflows/validate-branch.yaml | 108 ++----------------------- 2 files changed, 18 insertions(+), 150 deletions(-) diff --git a/.github/workflows/deploy-release.yaml b/.github/workflows/deploy-release.yaml index dd3ceb2..3f20a6c 100644 --- a/.github/workflows/deploy-release.yaml +++ b/.github/workflows/deploy-release.yaml @@ -7,52 +7,14 @@ on: jobs: deploy-release: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: 22 - env: - NODE_AUTH_TOKEN: ${{ secrets.GH_PACKAGES_TOKEN }} - - - name: Cache dependencies - id: cache-dependencies - uses: actions/cache@v4 - with: - path: node_modules - key: node_modules-${{ hashFiles('**/package-lock.json') }} - - - name: Install dependencies - if: steps.cache-dependencies.outputs.cache-hit != 'true' - run: |- - npm ci - rm -rf ~/.npmrc - - - name: Build package - run: |- - npm run build - - - name: Prepare release - run: |- - cp package.json README.md build/ - cd build - sed -i -e "s~\"version\": \"0.0.0-dev\"~\"version\": \"${GITHUB_REF##*/}\"~" package.json - - - name: Publish pre-release to NPM - if: ${{ github.event.release.prerelease }} - run: |- - cd build - echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" >> ~/.npmrc - npm publish --access public --tag next - env: - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - - - name: Publish release to NPM - if: ${{ !github.event.release.prerelease }} - run: |- - cd build - echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" >> ~/.npmrc - npm publish --access public - env: - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + uses: ./.github/workflows/npm-publish.yml + with: + node-version: "22" + publish-access: "public" + prepare-script: >- + cp package.json README.md build/ && + cd build && + sed -i -e "s~\"version\": \"0.0.0-dev\"~\"version\": \"${GITHUB_REF##*/}\"~" package.json + secrets: + NPM_TOKEN: ${{ secrets.GH_PACKAGES_TOKEN }} + PUBLISH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/.github/workflows/validate-branch.yaml b/.github/workflows/validate-branch.yaml index 1c032bd..aaee4b3 100644 --- a/.github/workflows/validate-branch.yaml +++ b/.github/workflows/validate-branch.yaml @@ -16,104 +16,10 @@ concurrency: cancel-in-progress: true jobs: - check-vulnerabilities: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: 22 - registry-url: 'https://npm.pkg.github.com' - env: - NODE_AUTH_TOKEN: ${{ secrets.GH_PACKAGES_TOKEN }} - - - name: Cache dependencies - id: cache-dependencies - uses: actions/cache@v4 - with: - path: node_modules - key: node_modules-${{ hashFiles('**/package-lock.json') }} - - - name: Install dependencies - if: steps.cache-dependencies.outputs.cache-hit != 'true' - run: npm ci - - - name: Check dependency vulnerabilities - run: |- - npm i -g npm-audit-resolver@3.0.0-7 - npx check-audit --omit dev - - validate-code: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: 22 - registry-url: 'https://npm.pkg.github.com' - env: - NODE_AUTH_TOKEN: ${{ secrets.GH_PACKAGES_TOKEN }} - - - name: Cache dependencies - id: cache-dependencies - uses: actions/cache@v4 - with: - path: node_modules - key: node_modules-${{ hashFiles('**/package-lock.json') }} - - - name: Install dependencies - if: steps.cache-dependencies.outputs.cache-hit != 'true' - run: npm ci - - - name: Check compilation errors - run: npm run validate - - check-code-style: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: 22 - registry-url: 'https://npm.pkg.github.com' - env: - NODE_AUTH_TOKEN: ${{ secrets.GH_PACKAGES_TOKEN }} - - - name: Cache dependencies - id: cache-dependencies - uses: actions/cache@v4 - with: - path: node_modules - key: node_modules-${{ hashFiles('**/package-lock.json') }} - - - name: Install dependencies - if: steps.cache-dependencies.outputs.cache-hit != 'true' - run: npm ci - - - name: Check coding standard violations - run: npm run lint - - run-tests: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: 22 - registry-url: 'https://npm.pkg.github.com' - env: - NODE_AUTH_TOKEN: ${{ secrets.GH_PACKAGES_TOKEN }} - - - name: Cache dependencies - id: cache-dependencies - uses: actions/cache@v4 - with: - path: node_modules - key: node_modules-${{ hashFiles('**/package-lock.json') }} - - - name: Install dependencies - if: steps.cache-dependencies.outputs.cache-hit != 'true' - run: npm ci - - - name: Run tests - run: npm run test + validations: + uses: croct-tech/github-workflows/.github/workflows/general/javascript-validations.yml@unify-workflows + with: + node-version: '22' + run-security: true + secrets: + GH_PACKAGES_TOKEN: ${{ secrets.GH_PACKAGES_TOKEN }} From 5d15dc1615deffcf78aa9a805c9136ba09214f4a Mon Sep 17 00:00:00 2001 From: Denis Rossati Ramos Date: Wed, 1 Apr 2026 15:58:35 -0300 Subject: [PATCH 2/7] Update workflow --- .github/workflows/validate-branch.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/validate-branch.yaml b/.github/workflows/validate-branch.yaml index aaee4b3..cbf98e6 100644 --- a/.github/workflows/validate-branch.yaml +++ b/.github/workflows/validate-branch.yaml @@ -17,7 +17,7 @@ concurrency: jobs: validations: - uses: croct-tech/github-workflows/.github/workflows/general/javascript-validations.yml@unify-workflows + uses: croct-tech/github-workflows/.github/workflows/javascript-validation.yml@unify-workflows with: node-version: '22' run-security: true From 5b4a11970a3a8183c810e022215494d736dc493b Mon Sep 17 00:00:00 2001 From: Denis Rossati Ramos Date: Mon, 6 Apr 2026 21:18:39 -0300 Subject: [PATCH 3/7] Set default node version --- .github/workflows/validate-branch.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/validate-branch.yaml b/.github/workflows/validate-branch.yaml index cbf98e6..bb190cf 100644 --- a/.github/workflows/validate-branch.yaml +++ b/.github/workflows/validate-branch.yaml @@ -17,9 +17,8 @@ concurrency: jobs: validations: - uses: croct-tech/github-workflows/.github/workflows/javascript-validation.yml@unify-workflows + uses: croct-tech/renovate-public-presets/.github/workflows/javascript-validations.yml@unify-workflows with: - node-version: '22' run-security: true secrets: GH_PACKAGES_TOKEN: ${{ secrets.GH_PACKAGES_TOKEN }} From 188a45f25f19f1012a83836c11163ff5343b5738 Mon Sep 17 00:00:00 2001 From: Denis Rossati Date: Mon, 13 Apr 2026 10:52:30 -0300 Subject: [PATCH 4/7] Correct workflow --- .github/workflows/deploy-release.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/deploy-release.yaml b/.github/workflows/deploy-release.yaml index 3f20a6c..6c4e952 100644 --- a/.github/workflows/deploy-release.yaml +++ b/.github/workflows/deploy-release.yaml @@ -7,10 +7,8 @@ on: jobs: deploy-release: - uses: ./.github/workflows/npm-publish.yml + uses: croct-tech/shared-public-configs/.github/workflows/publish-public-npm-package.yml@master with: - node-version: "22" - publish-access: "public" prepare-script: >- cp package.json README.md build/ && cd build && From d9dd8342c51e9ed013ca3c044e3ef88cf9018e5e Mon Sep 17 00:00:00 2001 From: Denis Rossati Date: Mon, 13 Apr 2026 10:52:48 -0300 Subject: [PATCH 5/7] Correct workflow --- .github/workflows/validate-branch.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/validate-branch.yaml b/.github/workflows/validate-branch.yaml index bb190cf..99950ca 100644 --- a/.github/workflows/validate-branch.yaml +++ b/.github/workflows/validate-branch.yaml @@ -17,8 +17,6 @@ concurrency: jobs: validations: - uses: croct-tech/renovate-public-presets/.github/workflows/javascript-validations.yml@unify-workflows - with: - run-security: true + uses: croct-tech/shared-public-configs/.github/workflows/javascript-validations.yml@master secrets: GH_PACKAGES_TOKEN: ${{ secrets.GH_PACKAGES_TOKEN }} From 4ea691d8ac06fd9b18f6c49b7230ce7fed9a57cd Mon Sep 17 00:00:00 2001 From: Denis Rossati Date: Wed, 15 Apr 2026 11:15:52 -0300 Subject: [PATCH 6/7] Correct workflow --- .github/workflows/deploy-release.yaml | 4 ++-- .../{send-guidelines.yaml => notify-guidelines.yaml} | 4 ++-- .../{update-release-notes.yaml => sync-release-notes.yaml} | 4 ++-- .github/workflows/validate-branch.yaml | 4 ++-- .../{check-commit-style.yml => validate-commits.yaml} | 4 ++-- .../{check-required-labels.yaml => validate-labels.yaml} | 4 ++-- 6 files changed, 12 insertions(+), 12 deletions(-) rename .github/workflows/{send-guidelines.yaml => notify-guidelines.yaml} (97%) rename .github/workflows/{update-release-notes.yaml => sync-release-notes.yaml} (88%) rename .github/workflows/{check-commit-style.yml => validate-commits.yaml} (89%) rename .github/workflows/{check-required-labels.yaml => validate-labels.yaml} (90%) diff --git a/.github/workflows/deploy-release.yaml b/.github/workflows/deploy-release.yaml index 6c4e952..46c453e 100644 --- a/.github/workflows/deploy-release.yaml +++ b/.github/workflows/deploy-release.yaml @@ -1,4 +1,4 @@ -name: Release deploy +name: Deploy release on: release: @@ -6,7 +6,7 @@ on: - published jobs: - deploy-release: + deploy: uses: croct-tech/shared-public-configs/.github/workflows/publish-public-npm-package.yml@master with: prepare-script: >- diff --git a/.github/workflows/send-guidelines.yaml b/.github/workflows/notify-guidelines.yaml similarity index 97% rename from .github/workflows/send-guidelines.yaml rename to .github/workflows/notify-guidelines.yaml index 00ae675..68fa82f 100644 --- a/.github/workflows/send-guidelines.yaml +++ b/.github/workflows/notify-guidelines.yaml @@ -1,11 +1,11 @@ -name: Guidelines +name: Notify guidelines on: pull_request: types: - opened jobs: - send-guidelines: + notify: runs-on: ubuntu-latest steps: - uses: wow-actions/auto-comment@v1 diff --git a/.github/workflows/update-release-notes.yaml b/.github/workflows/sync-release-notes.yaml similarity index 88% rename from .github/workflows/update-release-notes.yaml rename to .github/workflows/sync-release-notes.yaml index 3e6e7ba..6f9a691 100644 --- a/.github/workflows/update-release-notes.yaml +++ b/.github/workflows/sync-release-notes.yaml @@ -1,4 +1,4 @@ -name: Release notes +name: Sync release notes on: push: @@ -8,7 +8,7 @@ on: - '**' jobs: - update-notes: + sync: runs-on: ubuntu-latest steps: - name: Update release draft diff --git a/.github/workflows/validate-branch.yaml b/.github/workflows/validate-branch.yaml index 99950ca..9d6cec3 100644 --- a/.github/workflows/validate-branch.yaml +++ b/.github/workflows/validate-branch.yaml @@ -1,4 +1,4 @@ -name: Validations +name: Validate branch on: push: @@ -16,7 +16,7 @@ concurrency: cancel-in-progress: true jobs: - validations: + validate: uses: croct-tech/shared-public-configs/.github/workflows/javascript-validations.yml@master secrets: GH_PACKAGES_TOKEN: ${{ secrets.GH_PACKAGES_TOKEN }} diff --git a/.github/workflows/check-commit-style.yml b/.github/workflows/validate-commits.yaml similarity index 89% rename from .github/workflows/check-commit-style.yml rename to .github/workflows/validate-commits.yaml index 67e2467..2ec0fe0 100644 --- a/.github/workflows/check-commit-style.yml +++ b/.github/workflows/validate-commits.yaml @@ -1,4 +1,4 @@ -name: Commit style +name: Validate commits on: pull_request: @@ -13,7 +13,7 @@ on: - 'dev/*' jobs: - check-commit-style: + validate: runs-on: ubuntu-latest steps: - name: Check diff --git a/.github/workflows/check-required-labels.yaml b/.github/workflows/validate-labels.yaml similarity index 90% rename from .github/workflows/check-required-labels.yaml rename to .github/workflows/validate-labels.yaml index 03984e9..af618af 100644 --- a/.github/workflows/check-required-labels.yaml +++ b/.github/workflows/validate-labels.yaml @@ -1,4 +1,4 @@ -name: Label requirements +name: Validate labels on: pull_request: types: @@ -9,7 +9,7 @@ on: - unlabeled jobs: - check-labels: + validate: name: Check labels runs-on: ubuntu-latest steps: From d05d09d987aab758b5ab9979edd8cb14b7887778 Mon Sep 17 00:00:00 2001 From: Luiz Ferraz Date: Tue, 21 Apr 2026 16:20:47 +0000 Subject: [PATCH 7/7] Applied workflow standards --- .github/workflows/validate-labels.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/validate-labels.yaml b/.github/workflows/validate-labels.yaml index af618af..df26040 100644 --- a/.github/workflows/validate-labels.yaml +++ b/.github/workflows/validate-labels.yaml @@ -10,7 +10,6 @@ on: jobs: validate: - name: Check labels runs-on: ubuntu-latest steps: - uses: docker://agilepathway/pull-request-label-checker:latest