5
0
Fork 0
mirror of https://github.com/hashicorp/vault-action.git synced 2025-11-09 16:16:55 +00:00

check that dist folder contains the recent changes

This commit is contained in:
Alex Prizov 2022-10-14 11:47:31 +03:00
parent 66e0a54c0b
commit 90ca453b96
No known key found for this signature in database
GPG key ID: D71C0181ADFAC65E

View file

@ -27,9 +27,20 @@ jobs:
- name: NPM Install
run: npm ci
- name: Get the dist folder hash
id: dist
run: |
echo "hash=${{ hashFiles('dist/**') }}" >> $GITHUB_OUTPUT
- name: NPM 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
run: npm run test