Skip to content

Commit

Permalink
add shared action to folder
Browse files Browse the repository at this point in the history
  • Loading branch information
kylemellander committed Aug 29, 2024
1 parent 235c673 commit 9166b01
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/rc.yml
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 }}

0 comments on commit 9166b01

Please sign in to comment.