diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index a2b3ae9..654e261 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -18,13 +18,16 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@master + - name: Use Node.js ${{ env.NODE_VERSION }} uses: actions/setup-node@v1 with: node-version: ${{ env.NODE_VERSION }} yarn-version: ${{ env.YARN_VERSION }} - - name: Print Yarn version + - name: Check Yarn version run: yarn --version + - name: Check Node.js version + run: node --version - name: yarn install and build run: | # Build and test the project, then diff --git a/deploy.sh b/deploy.sh index 615727c..ada8783 100644 --- a/deploy.sh +++ b/deploy.sh @@ -23,6 +23,10 @@ exitWithMessageOnError () { hash node 2>/dev/null exitWithMessageOnError "Missing node.js executable, please install node.js, if already installed make sure it can be reached from current environment." +# Verify yarn installed +hash yarn 2>/dev/null +exitWithMessageOnError "Missing yarn executable, please install yarn, if already installed make sure it can be reached from current environment." + # Setup # ----- @@ -97,6 +101,14 @@ selectNodeVersion DESIRED_YARN_VERSION="1.22.22" installYarn +# Print Node.js version +echo "Node.js version 1:" +node --version + +# Print Yarn version +echo "Yarn version 1:" +yarn --version + # 4. Install npm packages if [ -e "$DEPLOYMENT_TARGET/package.json" ]; then cd "$DEPLOYMENT_TARGET"