Skip to content

Commit bf5d1d2

Browse files
ci: add workflow_dispatch to test the release pipeline
1 parent aa0929b commit bf5d1d2

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
tags:
66
- "v*"
7+
workflow_dispatch:
78

89
permissions:
910
id-token: write
@@ -85,7 +86,8 @@ jobs:
8586
name: darwin-arm-prebuilds
8687
path: packages/core/prebuilds
8788

88-
- name: Publish the libraries
89+
- if: github.event_name == 'push'
90+
name: Publish the libraries
8991
run: |
9092
if [[ "${{ github.ref }}" == *"-alpha"* ]]; then
9193
pnpm publish -r --access=public --no-git-checks --tag=alpha
@@ -96,7 +98,8 @@ jobs:
9698
NPM_CONFIG_PROVENANCE: true
9799
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
98100

99-
- name: Create a draft release
101+
- if: github.event_name == 'push'
102+
name: Create a draft release
100103
run: |
101104
NEW_VERSION=$(pnpm lerna list --json | jq -r '.[] | select(.name == "@codspeed/core") | .version')
102105
gh release create v$NEW_VERSION --title "v$NEW_VERSION" --generate-notes -d

0 commit comments

Comments
 (0)