Skip to content

Commit 42a33dd

Browse files
ci: add workflow_dispatch to test the release pipeline
1 parent eb04a2e commit 42a33dd

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.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
@@ -67,7 +68,8 @@ jobs:
6768
merge-multiple: true
6869
path: packages/core/prebuilds
6970

70-
- name: Publish the libraries
71+
- if: github.event_name == 'push'
72+
name: Publish the libraries
7173
run: |
7274
if [[ "${{ github.ref }}" == *"-alpha"* ]]; then
7375
pnpm publish -r --access=public --no-git-checks --tag=alpha
@@ -78,7 +80,8 @@ jobs:
7880
NPM_CONFIG_PROVENANCE: true
7981
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
8082

81-
- name: Create a draft release
83+
- if: github.event_name == 'push'
84+
name: Create a draft release
8285
run: |
8386
NEW_VERSION=$(pnpm lerna list --json | jq -r '.[] | select(.name == "@codspeed/core") | .version')
8487
gh release create v$NEW_VERSION --title "v$NEW_VERSION" --generate-notes -d

0 commit comments

Comments
 (0)