-
Notifications
You must be signed in to change notification settings - Fork 5
41 lines (41 loc) · 1.2 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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 }}