Skip to content

Commit 4e82bee

Browse files
authored
ci: Adding workflow to automatically publish new UI releases (feast-dev#2466)
* ci: Adding workflow to automatically publish new UI releases Signed-off-by: Danny Chiao <danny@tecton.ai> * newline Signed-off-by: Danny Chiao <danny@tecton.ai>
1 parent 712653e commit 4e82bee

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/publish.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,3 +204,22 @@ jobs:
204204
mkdir -p /root/.m2/
205205
echo -n "$MAVEN_SETTINGS" > /root/.m2/settings.xml
206206
infra/scripts/publish-java-sdk.sh --revision ${VERSION_WITHOUT_PREFIX} --gpg-key-import-dir /root
207+
208+
publish-web-ui-npm:
209+
runs-on: ubuntu-latest
210+
steps:
211+
- uses: actions/checkout@v2
212+
- uses: actions/setup-node@v2
213+
with:
214+
node-version: '17.x'
215+
registry-url: 'https://registry.npmjs.org'
216+
- name: Install yarn dependencies
217+
working-directory: ./ui
218+
run: yarn install
219+
- name: Build yarn rollup
220+
working-directory: ./ui
221+
run: yarn build:lib
222+
- name: Publish UI package
223+
run: npm publish
224+
env:
225+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 commit comments

Comments
 (0)