From 938466ade3d315ed7909cd0e5a6bd73ac47388d6 Mon Sep 17 00:00:00 2001 From: ~hanfel-dovned <95324536+hanfel-dovned@users.noreply.github.com> Date: Mon, 22 Jan 2024 14:54:33 -0700 Subject: [PATCH] Update build-check.yml --- .github/workflows/build-check.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-check.yml b/.github/workflows/build-check.yml index 33265c287..22d71d004 100644 --- a/.github/workflows/build-check.yml +++ b/.github/workflows/build-check.yml @@ -15,20 +15,22 @@ jobs: with: node-version: "16.x" - - name: Copy dist/index.js + - name: Create target directory and copy file run: | - cd near - mkdir target - cp dist/index.js target/index.js + mkdir -p near/target + cp near/dist/index.js near/target/index.js - name: Install dependencies run: yarn + working-directory: ./near - name: Build run: yarn build + working-directory: ./near - name: Check dist/index.js run: cmp dist/index.js target/index.js + working-directory: ./near - name: Failure message if: failure() @@ -36,3 +38,4 @@ jobs: with: script: | core.setFailed('The dist/index.js seems to be stale. Please run *yarn build* and commit the dist/index.js file.') + working-directory: ./near