* ci: test docs-publish * Require unit tests for dry run * ci: Make sure our docs publish is executable * Try to correct path issue * Try repo prefix * Try as yarn command * Need a workspace to attach to from previous step * Add before we call our bash script * See if we can enforce commands being available -- or just install locally? * Try again * Try SSH * Include username in gh https url * Note regarding failure on PR branches * Remove docs publish from PR workflow
28 lines
753 B
Bash
28 lines
753 B
Bash
#!/bin/bash
|
|
|
|
# Set directory to location of this script
|
|
# https://stackoverflow.com/a/3355423/1867984
|
|
cd "$(dirname "$0")"
|
|
cd .. # Up to project root
|
|
|
|
# Helpful to verify which versions we're using
|
|
yarn -v
|
|
node -v
|
|
|
|
# Install build deps and all monorepo package dependencies. Yarn Workspaces
|
|
# should also symlink all projects appropriately
|
|
yarn install --no-ignore-optional --pure-lockfile
|
|
|
|
# Build && Move PWA Output
|
|
yarn run build:ci
|
|
mkdir -p ./.netlify/www/pwa
|
|
mv platform/viewer/dist/* .netlify/www/pwa -v
|
|
|
|
# Build && Move script output
|
|
# yarn run build:package
|
|
|
|
echo 'Nothing left to see here. Go home, folks.'
|
|
|
|
# Build using react-scripts
|
|
# npx cross-env PUBLIC_URL=/demo APP_CONFIG=config/netlify.js react-scripts --max_old_space_size=4096 build
|