Skip to content

Commit

Permalink
Update build-check.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
hanfel-dovned authored Jan 22, 2024
1 parent 045eaee commit 938466a
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/build-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,27 @@ 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()
uses: actions/github-script@v3
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

0 comments on commit 938466a

Please sign in to comment.