Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/workflows/release-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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 }}
2 changes: 1 addition & 1 deletion .github/workflows/stale-cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down