diff --git a/.github/workflows/release-pipeline.yml b/.github/workflows/release-pipeline.yml index 4a18a8c..948f1c4 100644 --- a/.github/workflows/release-pipeline.yml +++ b/.github/workflows/release-pipeline.yml @@ -29,6 +29,11 @@ on: required: false type: string default: "ubuntu-latest" + dry-run: + description: "Simulate the release without publishing to npm or creating a GitHub release" + required: false + type: boolean + default: false secrets: npm-token: description: "npm access token (e.g. BRAINTREE_NPM_ACCESS_TOKEN)" @@ -66,6 +71,7 @@ jobs: version-type: ${{ inputs.version-type }} base-branch: ${{ inputs.base-branch }} github-token: ${{ secrets.GITHUB_TOKEN }} + dry-run: ${{ inputs.dry-run }} publish-npm: needs: bump-version @@ -79,6 +85,7 @@ jobs: uses: braintree/web-sdk-github-actions/actions/npm-publish@main with: npm-token: ${{ secrets.npm-token }} + dry-run: ${{ inputs.dry-run }} publish-release: needs: publish-npm @@ -92,3 +99,4 @@ jobs: uses: braintree/web-sdk-github-actions/actions/release-notes@main with: github-token: ${{ secrets.GITHUB_TOKEN }} + dry-run: ${{ inputs.dry-run }} diff --git a/.github/workflows/stale-cleanup.yml b/.github/workflows/stale-cleanup.yml index c2e4ce7..f3e836f 100644 --- a/.github/workflows/stale-cleanup.yml +++ b/.github/workflows/stale-cleanup.yml @@ -87,7 +87,7 @@ jobs: contents: write steps: - name: "Remove stale branches" - uses: fpicalausa/remove-stale-branches@7c4f2afe88a36c0f9114cd958380979b9d7323fb + uses: fpicalausa/remove-stale-branches@v2.6.1 with: days-before-branch-stale: ${{ inputs.branch-days-stale }} days-before-branch-delete: ${{ inputs.branch-days-close }}