-
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.
- Loading branch information
1 parent
235c673
commit 9166b01
Showing
1 changed file
with
40 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,40 @@ | ||
name: PCO-Release - Release Candidate Automation | ||
on: | ||
workflow_call: | ||
inputs: | ||
build-directory: | ||
description: "The build output directory" | ||
required: false | ||
type: string | ||
default: "dist" | ||
only: | ||
description: "Only run on specific repos. This is a comma separated list of repo names (ie 'people,services,groups')" | ||
required: false | ||
type: string | ||
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 | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Publish Release Candidate | ||
uses: planningcenter/shared-workflows/.github/workflows/publish-to-npm-on-release.yml@main | ||
with: | ||
build-directory: build-directory | ||
ref: ${{ steps.create-rc-release.outputs.id }} | ||
- name: Push to `staging` for Consumers | ||
uses: planningcenter/pco-release-action/deploy@km/tag-deploy | ||
with: | ||
github-token: ${{ secrets.PICOBOT_JS_DEPLOYMENT }} | ||
tag: ${{ steps.create-rc-release.outputs.id }} | ||
change-method: "merge" | ||
branch-name: "staging" | ||
only: ${{ inputs.only }} |