Skip to content

Commit a737290

Browse files
committed
add release workflow
1 parent c13fbdc commit a737290

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/release.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Release Workflow
2+
on:
3+
push:
4+
branches:
5+
- 'release/package'
6+
7+
jobs:
8+
run-release-script:
9+
runs-on: ubuntu-latest
10+
timeout-minutes: 5
11+
defaults:
12+
run:
13+
working-directory: package
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v4
17+
18+
- name: Setup Node.js
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version: '22'
22+
23+
- name: Publish to npm
24+
id: publish
25+
run: npx --yes needle-publish-helper@next publish "." --webhook "${{ secrets.WEBHOOK_URL }}" --registry https://packages.needle.tools --access-token "${{ secrets.NPM_TOKEN }}" --create-tag release/ --llm-api-key "${{ secrets.LLM_API_KEY }}"

0 commit comments

Comments
 (0)