babel/scripts/integration-tests/publish-local.sh
Nicolò Ribaudo 05fa18e652
Run e2e tests on GH actions (#12517)
Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
Co-authored-by: Juan Picado <juanpicado19@gmail.com>
2021-03-12 22:33:40 +01:00

40 lines
1.1 KiB
Bash
Executable File

#!/bin/bash
#==============================================================================#
# SETUP #
#==============================================================================#
# Start in scripts/integration-tests/ even if run from root directory
cd "$(dirname "$0")"
source utils/local-registry.sh
source utils/git.sh
source utils/cleanup.sh
# Echo every command being executed
set -x
# Go to the root of the monorepo
cd ../..
initializeE2Egit
#==============================================================================#
# PUBLISH #
#==============================================================================#
yarn
startLocalRegistry "$PWD"/scripts/integration-tests/verdaccio-config.yml
loginLocalRegistry
# This script gets the last root package.json version,
# and then increases by one the patch number
VERSION=$(
node -p "require('./package.json').version.replace(/(?<=\\d+\\.\\d+\\.)\\d+/, x => ++x)"
)
I_AM_USING_VERDACCIO=I_AM_SURE VERSION="$VERSION" make publish-test
cleanup