-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: create a full run of release candidate
- Loading branch information
1 parent
16e2e85
commit 235c673
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: PCO-Release - Release Candidate Automation | ||
on: | ||
workflow_call: | ||
inputs: | ||
build-directory: | ||
description: "The build output directory" | ||
required: false | ||
default: "dist" | ||
only: | ||
description: "Only run on specific repos. This is a comma separated list of repo names (ie 'people,services,groups')" | ||
required: false | ||
default: "" | ||
jobs: | ||
create-rc-release: | ||
if: github.event.issue.pull_request && contains(github.event.comment.body, '@pco-release rc') | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
steps: | ||
- name: Create Release Candidate Pre-Release | ||
id: create-rc-release | ||
uses: planningcenter/pco-release-action/create-release-candidate@v1 | ||
secrets: inherit | ||
- name: Publish Release Candidate | ||
uses: planningcenter/shared-workflows/.github/workflows/publish-to-npm-on-release.yml@main | ||
secrets: inherit | ||
with: | ||
build-directory: build-directory | ||
ref: ${{ steps.create-rc-release.outputs.id }} | ||
- name: Push to `staging` for Consumers | ||
uses: planningcenter/pco-release-action/deploy@v1 | ||
secrets: inherit | ||
with: | ||
github-token: ${{ secrets.PICOBOT_JS_DEPLOYMENT }} | ||
tag: ${{ steps.create-rc-release.outputs.id }} | ||
merge-method: "merge" | ||
branch-name: "staging" | ||
only: ${{ inputs.only }} |