Cut a Release #70
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
name: Cut a Release | |
on: | |
workflow_dispatch: | |
inputs: | |
package: | |
description: Name of the package to release | |
required: true | |
type: choice | |
options: | |
- constants | |
- custom-question-api | |
- eslint-config | |
- react-embed | |
- tsconfig | |
- web-embed-api | |
- embed-messaging-manager | |
version: | |
description: Version to release | |
required: true | |
env: | |
GIT_COMMITTER_NAME: Formsort Release Bot | |
GIT_AUTHOR_NAME: Formsort Release Bot | |
EMAIL: [email protected] | |
jobs: | |
prepare_and_publish: | |
runs-on: ubuntu-latest | |
name: 'Publish a new version' | |
environment: release | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.FS_RELEASE_GITHUB_PAT }} | |
fetch-depth: 0 | |
- uses: ./.github/actions/setup-node | |
- name: Publish with Craft | |
env: | |
GITHUB_TOKEN: ${{ secrets.FS_RELEASE_GITHUB_PAT }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
CRAFT_LOG_LEVEL: ${{ secrets.CRAFT_LOG_LEVEL }} | |
run: | | |
yarn workspace @formsort/${{ github.event.inputs.package }} craft prepare --publish ${{ github.event.inputs.version }} |