@@ -42,40 +42,41 @@ jobs:
4242 echo "Current version is ${CURRENT_VERSION}"
4343 echo "Next version is ${NEXT_VERSION}"
4444
45- # publish-web-ui-npm:
46- # if: github.repository == 'feast-dev/feast'
47- # needs: get_dry_release_versions
48- # runs-on: ubuntu-latest
49- # env:
50- # # This publish is working using an NPM automation token to bypass 2FA
51- # NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
52- # CURRENT_VERSION: ${{ needs.get_dry_release_versions.outputs.current_version }}
53- # NEXT_VERSION: ${{ needs.get_dry_release_versions.outputs.next_version }}
54- # steps:
55- # - uses: actions/checkout@v2
56- # - uses: actions/setup-node@v2
57- # with:
58- # node-version: '17.x'
59- # registry-url: 'https://registry.npmjs.org'
60- # - name: Bump file versions (temporarily for Web UI publish)
61- # run: python ./infra/scripts/release/bump_file_versions.py ${CURRENT_VERSION} ${NEXT_VERSION}
62- # - name: Install yarn dependencies
63- # working-directory: ./ui
64- # run: yarn install
65- # - name: Build yarn rollup
66- # working-directory: ./ui
67- # run: yarn build:lib
68- # - name: Publish UI package
69- # working-directory: ./ui
70- # run: npm publish
71- # env:
72- # # This publish is working using an NPM automation token to bypass 2FA
73- # NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
45+ publish-web-ui-npm :
46+ if : github.repository == 'feast-dev/feast'
47+ needs : get_dry_release_versions
48+ runs-on : ubuntu-latest
49+ env :
50+ # This publish is working using an NPM automation token to bypass 2FA
51+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
52+ CURRENT_VERSION : ${{ needs.get_dry_release_versions.outputs.current_version }}
53+ NEXT_VERSION : ${{ needs.get_dry_release_versions.outputs.next_version }}
54+ steps :
55+ - uses : actions/checkout@v2
56+ - uses : actions/setup-node@v2
57+ with :
58+ node-version : ' 17.x'
59+ registry-url : ' https://registry.npmjs.org'
60+ - name : Bump file versions (temporarily for Web UI publish)
61+ run : python ./infra/scripts/release/bump_file_versions.py ${CURRENT_VERSION} ${NEXT_VERSION}
62+ - name : Install yarn dependencies
63+ working-directory : ./ui
64+ run : yarn install
65+ - name : Build yarn rollup
66+ working-directory : ./ui
67+ run : yarn build:lib
68+ - name : Publish UI package
69+ if : github.event.inputs.dry_run == 'false'
70+ working-directory : ./ui
71+ run : npm publish
72+ env :
73+ # This publish is working using an NPM automation token to bypass 2FA
74+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
7475
7576 release :
7677 name : release
7778 runs-on : ubuntu-latest
78- # needs: publish-web-ui-npm
79+ needs : publish-web-ui-npm
7980 env :
8081 GITHUB_TOKEN : ${{ github.event.inputs.token }}
8182 GIT_AUTHOR_NAME : feast-ci-bot
0 commit comments