-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (38 loc) · 1.13 KB
/
release-ragstack.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Release RAGStack package
on:
push:
tags:
- "ragstack-ai-*"
jobs:
release:
name: Release package
runs-on: ubuntu-latest
permissions: write-all
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: "Setup: Node"
uses: ./.github/actions/setup-node
- name: "Install"
run: yarn
- name: "Release package"
env:
YARN_NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
cd packages/ragstack-ai
yarn run release:publish
- name: Create GitHub Release
uses: ncipollo/release-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
generateReleaseNotes: true
prerelease: false
- name: Compute release number
id: release-number
shell: bash
run: |
echo "release-number=$(echo ${{ github.ref }} | sed -e 's/refs\/tags\/ragstack-ai-//')" >> $GITHUB_OUTPUT
- name: Update API reference
uses: ./.github/actions/deploy-api-reference
with:
ragstack-version: ${{ steps.release-number.outputs.release-number }}