Skip to content

add shared action to folder #1

add shared action to folder

add shared action to folder #1

Workflow file for this run

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 }}