-
Notifications
You must be signed in to change notification settings - Fork 118
159 lines (156 loc) · 6.25 KB
/
bump-js-plugins-version.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
# Copyright 2024 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: Bump and Tag JS Plugins Version
on:
workflow_dispatch:
inputs:
releaseType:
description: Release type
type: choice
default: patch
required: true
options:
- patch
- minor
- major
- prerelease
preid:
description: Prerelease identifier
type: string
default: rc
required: true
jobs:
build:
name: Version bump
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.GENKIT_RELEASER_GITHUB_TOKEN }}
- uses: pnpm/action-setup@v3
- name: Set up node v20
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: 'pnpm'
- name: 'js/plugins/chroma version bump'
uses: 'phips28/gh-action-bump-version@master'
env:
GITHUB_TOKEN: ${{ secrets.GENKIT_RELEASER_GITHUB_TOKEN }}
PACKAGEJSON_DIR: js/plugins/chroma
with:
default: ${{ inputs.releaseType }}
preid: ${{ inputs.preid }}
commit-message: 'chore: bump genkitx-chromadb version to {{version}}'
tag-prefix: 'genkitx-chromadb'
- name: 'js/plugins/dev-local-vectorstore version bump'
uses: 'phips28/gh-action-bump-version@master'
env:
GITHUB_TOKEN: ${{ secrets.GENKIT_RELEASER_GITHUB_TOKEN }}
PACKAGEJSON_DIR: js/plugins/dev-local-vectorstore
with:
default: ${{ inputs.releaseType }}
preid: ${{ inputs.preid }}
commit-message: 'chore: bump @genkit-ai/dev-local-vectorstore version to {{version}}'
tag-prefix: '@genkit-ai/dev-local-vectorstore@'
- name: 'js/plugins/dotprompt version bump'
uses: 'phips28/gh-action-bump-version@master'
env:
GITHUB_TOKEN: ${{ secrets.GENKIT_RELEASER_GITHUB_TOKEN }}
PACKAGEJSON_DIR: js/plugins/dotprompt
with:
default: ${{ inputs.releaseType }}
preid: ${{ inputs.preid }}
commit-message: 'chore: bump @genkit-ai/dotprompt version to {{version}}'
tag-prefix: '@genkit-ai/dotprompt@'
- name: 'js/plugins/evaluators version bump'
uses: 'phips28/gh-action-bump-version@master'
env:
GITHUB_TOKEN: ${{ secrets.GENKIT_RELEASER_GITHUB_TOKEN }}
PACKAGEJSON_DIR: js/plugins/evaluators
with:
default: ${{ inputs.releaseType }}
preid: ${{ inputs.preid }}
commit-message: 'chore: bump @genkit-ai/evaluator version to {{version}}'
tag-prefix: '@genkit-ai/evaluator@'
- name: 'js/plugins/firebase version bump'
uses: 'phips28/gh-action-bump-version@master'
env:
GITHUB_TOKEN: ${{ secrets.GENKIT_RELEASER_GITHUB_TOKEN }}
PACKAGEJSON_DIR: js/plugins/firebase
with:
default: ${{ inputs.releaseType }}
preid: ${{ inputs.preid }}
commit-message: 'chore: bump @genkit-ai/firebase version to {{version}}'
tag-prefix: '@genkit-ai/firebase@'
- name: 'js/plugins/google-cloud version bump'
uses: 'phips28/gh-action-bump-version@master'
env:
GITHUB_TOKEN: ${{ secrets.GENKIT_RELEASER_GITHUB_TOKEN }}
PACKAGEJSON_DIR: js/plugins/google-cloud
with:
default: ${{ inputs.releaseType }}
preid: ${{ inputs.preid }}
commit-message: 'chore: bump @genkit-ai/google-cloud version to {{version}}'
tag-prefix: '@genkit-ai/google-cloud@'
- name: 'js/plugins/googleai version bump'
uses: 'phips28/gh-action-bump-version@master'
env:
GITHUB_TOKEN: ${{ secrets.GENKIT_RELEASER_GITHUB_TOKEN }}
PACKAGEJSON_DIR: js/plugins/googleai
with:
default: ${{ inputs.releaseType }}
preid: ${{ inputs.preid }}
commit-message: 'chore: bump @genkit-ai/googleai version to {{version}}'
tag-prefix: '@genkit-ai/googleai@'
- name: 'js/plugins/langchain version bump'
uses: 'phips28/gh-action-bump-version@master'
env:
GITHUB_TOKEN: ${{ secrets.GENKIT_RELEASER_GITHUB_TOKEN }}
PACKAGEJSON_DIR: js/plugins/langchain
with:
default: ${{ inputs.releaseType }}
preid: ${{ inputs.preid }}
commit-message: 'chore: bump genkitx-langchain version to {{version}}'
tag-prefix: 'genkitx-langchain@'
- name: 'js/plugins/ollama version bump'
uses: 'phips28/gh-action-bump-version@master'
env:
GITHUB_TOKEN: ${{ secrets.GENKIT_RELEASER_GITHUB_TOKEN }}
PACKAGEJSON_DIR: js/plugins/ollama
with:
default: ${{ inputs.releaseType }}
preid: ${{ inputs.preid }}
commit-message: 'chore: bump genkitx-ollama version to {{version}}'
tag-prefix: 'genkitx-ollama@'
- name: 'js/plugins/pinecone version bump'
uses: 'phips28/gh-action-bump-version@master'
env:
GITHUB_TOKEN: ${{ secrets.GENKIT_RELEASER_GITHUB_TOKEN }}
PACKAGEJSON_DIR: js/plugins/pinecone
with:
default: ${{ inputs.releaseType }}
preid: ${{ inputs.preid }}
commit-message: 'chore: bump genkitx-pinecone version to {{version}}'
tag-prefix: 'genkitx-pinecone@'
- name: 'js/plugins/vertexai version bump'
uses: 'phips28/gh-action-bump-version@master'
env:
GITHUB_TOKEN: ${{ secrets.GENKIT_RELEASER_GITHUB_TOKEN }}
PACKAGEJSON_DIR: js/plugins/vertexai
with:
default: ${{ inputs.releaseType }}
preid: ${{ inputs.preid }}
commit-message: 'chore: bump @genkit-ai/vertexai version to {{version}}'
tag-prefix: '@genkit-ai/vertexai@'