Skip to content

Commit f41d726

Browse files
ci: add workflow_dispatch to test the release pipeline
1 parent e2fb1ed commit f41d726

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

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

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

0 commit comments

Comments
 (0)