This repository was archived by the owner on Mar 28, 2025. It is now read-only.
File tree 1 file changed +75
-0
lines changed
1 file changed +75
-0
lines changed Original file line number Diff line number Diff line change
1
+ on :
2
+ workflow_dispatch :
3
+ inputs :
4
+ release_message :
5
+ type : string
6
+ description : Release message
7
+ required : true
8
+ prerelease :
9
+ type : boolean
10
+ description : Is this a pre-release version?
11
+ required : false
12
+ default : false
13
+
14
+ permissions :
15
+ contents : write
16
+
17
+ jobs :
18
+ publish :
19
+ name : Publish Langchain Retriever to npm
20
+ runs-on : ubuntu-latest
21
+ needs :
22
+ - create-release
23
+ steps :
24
+ - uses : actions/checkout@v4
25
+ - uses : actions/setup-node@v3
26
+ with :
27
+ node-version : " 20"
28
+ - run : npm ci
29
+ - uses : JS-DevTools/npm-publish@v3
30
+ with :
31
+ package : packages/langchain
32
+ token : ${{ secrets.NPM_TOKEN }}
33
+
34
+ publish :
35
+ name : Publish TypeScript Client to npm
36
+ runs-on : ubuntu-latest
37
+ needs :
38
+ - create-release
39
+ steps :
40
+ - uses : actions/checkout@v4
41
+ - uses : actions/setup-node@v3
42
+ with :
43
+ node-version : " 20"
44
+ - run : npm ci
45
+ - uses : JS-DevTools/npm-publish@v3
46
+ with :
47
+ token : ${{ secrets.NPM_TOKEN }}
48
+
49
+ create-release :
50
+ name : Create GitHub Release
51
+ runs-on : ubuntu-latest
52
+ needs :
53
+ - extract-version
54
+ steps :
55
+ - name : Create GitHub Release
56
+ id : create_release
57
+ uses : actions/create-release@v1
58
+ with :
59
+ tag_name : " v${{ needs.extract-version.outputs.version }}"
60
+ prerelease : ${{ github.event.inputs.prerelease }}
61
+ body : ${{ github.event.inputs.release_message }}
62
+ env :
63
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
64
+
65
+ extract-version :
66
+ name : Extract Version Number
67
+ runs-on : ubuntu-latest
68
+ outputs :
69
+ version : ${{ steps.version_extraction.outputs.version }}
70
+ steps :
71
+ - uses : actions/checkout@v4
72
+ - id : version_extraction
73
+ run : echo "version=$(cat package.json | jq .version' | xargs)" >> "$GITHUB_OUTPUT"
74
+
75
+
You can’t perform that action at this time.
0 commit comments