chore(deps): Update dependency @sveltejs/enhanced-img to v0.4.0 #951
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: Test deployment | |
on: | |
push: | |
branches: | |
- 'main' | |
pull_request: | |
branches: | |
- 'main' | |
jobs: | |
test-deploy: | |
name: Test deployment | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: latest | |
- name: Use Node.js LTS | |
uses: actions/setup-node@v4 | |
with: | |
node-version: lts/* | |
cache: 'pnpm' | |
cache-dependency-path: 'pnpm-lock.yaml' | |
- name: Install dependencies | |
run: pnpm install | |
- name: Set Public Version | |
run: | | |
# Get the short commit SHA | |
COMMIT_SHA=$(echo $GITHUB_SHA | cut -c1-7) | |
# Set it as an environment variable | |
echo "PUBLIC_VERSION=$COMMIT_SHA" >> $GITHUB_ENV | |
- name: Test build website | |
run: | | |
pnpm run build | |
pnpm run postbuild |