build(snap): re-enable snap workflow (#2945)

* build(snap): try re-enabling snap workflow

* build: try adding a safe directory exception?

* build(snap): disable cypress binary install

* build(snap): add yarnrc to force frozen lockfile and timeout arguments

* build(snap): add back in release snap workflow

* build(snap): revert back to only running on dev branch
This commit is contained in:
Ryan Cohen
2022-08-18 19:16:24 +09:00
committed by GitHub
parent 103c4ca49c
commit f4910a1483
3 changed files with 165 additions and 0 deletions

View File

@@ -36,6 +36,9 @@ parts:
override-pull: |
snapcraftctl pull
# Get information to determine snap grade and version
git config --global --add safe.directory /data/parts/overseerr/src
#setup yarn.rc
echo "--install.frozen-lockfile\n--install.network-timeout 1000000" > .yarnrc
BRANCH=$(git rev-parse --abbrev-ref HEAD)
COMMIT=$(git rev-parse HEAD)
COMMIT_SHORT=$(git rev-parse --short HEAD)
@@ -62,6 +65,7 @@ parts:
snapcraftctl set-grade "$GRADE"
build-environment:
- PATH: '$SNAPCRAFT_PART_BUILD/node_modules/.bin:$SNAPCRAFT_PART_BUILD/../npm/bin:$PATH'
- CYPRESS_INSTALL_BINARY: '0'
override-build: |
set -e
# Set COMMIT_TAG before the build begins