Skip to content

Commit 4c8f053

Browse files
committed
Github: canary
1 parent 382b101 commit 4c8f053

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

.github/workflows/publish.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ name: Release Workflow
22
on:
33
push:
44
branches:
5-
- 'release/rc'
5+
- 'release/canary'
66
- 'release/next'
7+
- 'release/rc'
78
- 'release/stable'
89

910
jobs:
@@ -43,16 +44,17 @@ jobs:
4344
- name: Run build script
4445
run: npm run build
4546

46-
- name: Publish to npm (stable branch)
47-
if: startsWith(github.ref_name, 'release/stable')
48-
run: npx --yes needle-publish-helper@next publish "./dist" --oidc --webhook "${{ secrets.DISCORD_WEBHOOK }}" --tag "stable" --create-tag "release/" --llm-api-key "${{ secrets.LLM_API_KEY }}"
49-
47+
- name: Publish to npm (next and canary branches)
48+
if: startsWith(github.ref_name, 'release/next') || startsWith(github.ref_name, 'release/canary')
49+
run: npx --yes needle-publish-helper@next publish "./dist" --oidc --webhook "${{ secrets.DISCORD_WEBHOOK }}" --tag "${{ github.ref_name }}" --version+tag --version+hash --create-tag "release/" --llm-api-key "${{ secrets.LLM_API_KEY }}"
50+
5051
- name: Publish to npm (rc branch)
5152
if: startsWith(github.ref_name, 'release/rc')
5253
run: npx --yes needle-publish-helper@next publish "./dist" --oidc --webhook "${{ secrets.DISCORD_WEBHOOK }}" --tag "rc" --version+tag --create-tag "release/" --llm-api-key "${{ secrets.LLM_API_KEY }}"
5354

54-
- name: Publish to npm (next and experimental branches)
55-
if: startsWith(github.ref_name, 'release/next')
56-
run: npx --yes needle-publish-helper@next publish "./dist" --oidc --webhook "${{ secrets.DISCORD_WEBHOOK }}" --tag "${{ github.ref_name }}" --version+tag --version+hash --create-tag "release/" --llm-api-key "${{ secrets.LLM_API_KEY }}"
55+
- name: Publish to npm (stable branch)
56+
if: startsWith(github.ref_name, 'release/stable')
57+
run: npx --yes needle-publish-helper@next publish "./dist" --oidc --webhook "${{ secrets.DISCORD_WEBHOOK }}" --tag "stable" --create-tag "release/" --llm-api-key "${{ secrets.LLM_API_KEY }}"
58+
5759

5860

0 commit comments

Comments
 (0)