diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ccc9a39..f0b9188 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,7 +14,7 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 - uses: oven-sh/setup-bun@v2 @@ -31,7 +31,7 @@ jobs: runs-on: ubuntu-latest needs: build steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 - uses: oven-sh/setup-bun@v2 diff --git a/.github/workflows/commit-lint.yml b/.github/workflows/commit-lint.yml index f288543..26a6d21 100644 --- a/.github/workflows/commit-lint.yml +++ b/.github/workflows/commit-lint.yml @@ -14,7 +14,7 @@ jobs: lint-commits: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 with: fetch-depth: 0 diff --git a/.github/workflows/container.yml b/.github/workflows/container.yml index 90e74ed..3bf7c1c 100644 --- a/.github/workflows/container.yml +++ b/.github/workflows/container.yml @@ -20,7 +20,7 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 - name: Set up QEMU uses: docker/setup-qemu-action@v3 diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index 01fbe1d..b89fc93 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -24,7 +24,7 @@ jobs: publish: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 with: fetch-depth: 0 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 670c1ba..fcf7425 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,60 +11,16 @@ permissions: pull-requests: write jobs: - check-version: - if: github.event.workflow_run.conclusion == 'success' - runs-on: ubuntu-latest - outputs: - changed: ${{ steps.version.outputs.changed }} - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - id: version - env: - BEFORE_SHA: ${{ github.event.workflow_run.head_commit.id }} - run: | - # Prefer GitHub-provided refs when available, fall back to HEAD~1 - if [ -n "$BEFORE_SHA" ] && git cat-file -e "${BEFORE_SHA}^" 2>/dev/null; then - BASE="${BEFORE_SHA}~1" - elif git cat-file -e HEAD~1 2>/dev/null; then - BASE="HEAD~1" - else - # Initial commit or unreachable parent — treat as changed - echo "changed=true" >> $GITHUB_OUTPUT - exit 0 - fi - if git diff "$BASE" HEAD --name-only | grep -qE 'package\.json$'; then - echo "changed=true" >> $GITHUB_OUTPUT - else - echo "changed=false" >> $GITHUB_OUTPUT - fi - release: - needs: check-version - if: needs.check-version.outputs.changed == 'true' + if: github.event.workflow_run.conclusion == 'success' runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 with: fetch-depth: 0 - name: Create Release - uses: wgtechlabs/release-build-flow-action@799974c8dec094fbe94a92b2764365d3a8f9ce5f # v1.2.1 + uses: wgtechlabs/release-build-flow-action@849220473bb8656723d3528d4b705641cffaa5cd # v1.3.0 with: github-token: ${{ secrets.GH_PAT }} monorepo: 'true' - workspace-detection: 'true' - package-manager: 'bun' - change-detection: 'both' - unified-version: 'false' - per-package-changelog: 'true' - root-changelog: 'true' - changelog-enabled: 'true' - create-release: 'true' - release-draft: 'false' - release-name-template: 'Release {version}' - exclude-types: 'docs,style,test,ci,build' - minor-keywords: 'feat,new,add' - patch-keywords: 'fix,bugfix,security,perf,setup' - dry-run: 'false'