build(snap): add yarn install before yarn build

This commit is contained in:
fallenbagel
2023-11-07 05:21:15 +05:00
parent 9ac56a4057
commit 2b7dab2765

View File

@@ -88,6 +88,7 @@ parts:
# Set COMMIT_TAG before the build begins
export COMMIT_TAG=$(cat $SNAPCRAFT_PART_BUILD/commit.txt)
snapcraftctl build
yarn install
yarn build
# Copy files needed for staging
cp $SNAPCRAFT_PART_BUILD/committag.json $SNAPCRAFT_PART_INSTALL/