diff --git a/rc/full-run.yml b/rc/full-run.yml new file mode 100644 index 0000000..3c3e695 --- /dev/null +++ b/rc/full-run.yml @@ -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 }}