Skip to content

Commit c77a655

Browse files
kevjumbaadchia
authored andcommitted
fix: Fix release workflow (feast-dev#3144)
* Fix Signed-off-by: Kevin Zhang <[email protected]> * Fix Signed-off-by: Kevin Zhang <[email protected]> * Fix Signed-off-by: Kevin Zhang <[email protected]> * Fix helm charts Signed-off-by: Kevin Zhang <[email protected]> Signed-off-by: Kevin Zhang <[email protected]>
1 parent 0add6a4 commit c77a655

File tree

3 files changed

+37
-32
lines changed

3 files changed

+37
-32
lines changed

.github/workflows/build_wheels.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ jobs:
1717
version_without_prefix: ${{ steps.get_release_version_without_prefix.outputs.version_without_prefix }}
1818
highest_semver_tag: ${{ steps.get_highest_semver.outputs.highest_semver_tag }}
1919
steps:
20-
- uses: actions/checkout@v2
20+
- name: Checkout
21+
uses: actions/checkout@v2
22+
with:
23+
persist-credentials: false
2124
- name: Get release version
2225
id: get_release_version
2326
run: echo ::set-output name=release_version::${GITHUB_REF#refs/*/}
@@ -38,6 +41,7 @@ jobs:
3841
echo ::set-output name=highest_semver_tag::$(get_tag_release -m)
3942
fi
4043
- name: Check output
44+
id: check_output
4145
env:
4246
RELEASE_VERSION: ${{ steps.get_release_version.outputs.release_version }}
4347
VERSION_WITHOUT_PREFIX: ${{ steps.get_release_version_without_prefix.outputs.version_without_prefix }}

.github/workflows/release.yml

Lines changed: 31 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -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

infra/scripts/helm/validate-helm-chart-versions.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
set -e
44

55
# Amount of file locations that need to be bumped in unison when versions increment
6-
UNIQUE_VERSIONS_COUNT=20
6+
UNIQUE_VERSIONS_COUNT=21 # Change in release 0.24.0
77

88
if [ $# -ne 1 ]; then
99
echo "Please provide a single semver version (without a \"v\" prefix) to test the repository against, e.g 0.99.0"

0 commit comments

Comments
 (0)