Skip to content

Commit 9997b63

Browse files
committed
ci(release): Enable manual release on specified channel
1 parent 0f8bf0b commit 9997b63

File tree

3 files changed

+11
-45
lines changed

3 files changed

+11
-45
lines changed

.github/workflows/manual-deploy.yml

Lines changed: 0 additions & 39 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
name: Release
22
on:
3-
push:
4-
branches:
5-
- develop
3+
workflow_dispatch:
4+
inputs:
5+
channel:
6+
description: 'NPM Release channel'
7+
type: choice
8+
required: false
9+
options:
10+
- preview
11+
- latest
612
jobs:
713
release:
814
runs-on: ubuntu-latest
@@ -35,8 +41,8 @@ jobs:
3541
run: yarn test
3642
- name: Build all packages
3743
run: yarn build
38-
- name: Release packages
39-
run: yarn release
44+
- name: Release packages on '${{ inputs.channel }}' channel
45+
run: yarn release -c ${{ inputs.channel }}
4046
env:
4147
RELEASE_ENABLED: ${{ vars.RELEASE_ENABLED }}
4248
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

nx.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@
9393
}
9494
},
9595
"version": {
96-
"preVersionCommand": "yarn nx run-many -t build",
9796
"conventionalCommits": true,
9897
"generatorOptions": {
9998
"fallbackCurrentVersionResolver": "disk"

0 commit comments

Comments
 (0)