mirror of
https://github.com/hashicorp/vault-action.git
synced 2025-11-10 00:26:55 +00:00
check that dist folder contains the recent changes
This commit is contained in:
parent
66e0a54c0b
commit
90ca453b96
1 changed files with 11 additions and 0 deletions
11
.github/workflows/build.yml
vendored
11
.github/workflows/build.yml
vendored
|
|
@ -27,9 +27,20 @@ jobs:
|
||||||
- name: NPM Install
|
- name: NPM Install
|
||||||
run: npm ci
|
run: npm ci
|
||||||
|
|
||||||
|
- name: Get the dist folder hash
|
||||||
|
id: dist
|
||||||
|
run: |
|
||||||
|
echo "hash=${{ hashFiles('dist/**') }}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: NPM Build
|
- name: NPM Build
|
||||||
run: npm run build
|
run: npm run build
|
||||||
|
|
||||||
|
- name: Fail if the 'dist' folder doesn't contain the recent changes
|
||||||
|
if: steps.dist.outputs.hash != hashFiles('dist/**')
|
||||||
|
run: |
|
||||||
|
echo "::error::The dist folder doesn't contain the recent changes. Please run 'npm run build' and commit the 'dist' folder to the branch"
|
||||||
|
exit 1
|
||||||
|
|
||||||
- name: NPM Run Test
|
- name: NPM Run Test
|
||||||
run: npm run test
|
run: npm run test
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue