Merge pull request #134 from podlove/chore/stabilize-build-env #307
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
name: Qualify Branch | |
on: push | |
jobs: | |
qualify: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: install | |
uses: jetpack-io/devbox-install-action@v0.11.0 | |
with: | |
enable-cache: true | |
- name: npm env | |
id: npm | |
shell: bash | |
run: | | |
echo "npm_hash_key=${{ runner.os }}-npm-store-${{ hashFiles('**/package-lock.json') }}" >> "$GITHUB_OUTPUT" | |
echo "npm_restore_key=${{ runner.os }}-npm-store-" >> "$GITHUB_OUTPUT" | |
- uses: actions/cache@v4 | |
name: setup npm cache | |
with: | |
path: '**/node_modules' | |
key: ${{ steps.npm.outputs.npm_hash_key }} | |
restore-keys: ${{ steps.npm.outputs.npm_restore_key }} | |
- name: install | |
run: devbox run npm ci | |
- name: build | |
run: devbox run npm run build |