fix(ci): Move updating docker tag into own job to avoid setting it twice per run: when the builder image is built and when the app image is built #127
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Inspired by @action/checkout | |
# | |
# Compares the checked in `dist/index.js` with the PR's `dist/index.js` | |
# On mismatch this action fails | |
name: Verify dist | |
on: | |
push: | |
branches: | |
- master | |
- release/** | |
paths-ignore: | |
- "**.md" | |
pull_request: | |
paths-ignore: | |
- "**.md" | |
jobs: | |
check-dist: | |
name: Verify dist/index.js file | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Use volta | |
uses: volta-cli/action@v4 | |
- name: Install dependencies | |
run: yarn install | |
- name: Rebuild dist | |
run: yarn build | |
- name: Compare expected and actual dist | |
run: | | |
if [ "$(git diff --ignore-space-at-eol dist/ | wc -l)" -gt "0" ]; then | |
echo "Detected uncommitted changes after build. Did you forget to commit `dist/index.js`?" | |
echo "Diff:" | |
git diff | |
exit 1 | |
fi |