stores the value of the left nav scroll position in localstorage so it does not get lost when navigating #24
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
name: Sanity Build Check | |
on: | |
pull_request: | |
branches: [ testing, main ] | |
push: | |
branches: [ main,testing ] | |
workflow_dispatch: | |
jobs: | |
sanity-build-check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "21" | |
cache: ${{ steps.detect-package-manager.outputs.manager }} | |
- name: Create .env file | |
run: | | |
echo "NEXT_PUBLIC_DOTCMS_HOST=${{ secrets.NEXT_PUBLIC_DOTCMS_HOST }}" > .env | |
echo "NEXT_PUBLIC_DOTCMS_AUTH_TOKEN=${{ secrets.NEXT_PUBLIC_DOTCMS_AUTH_TOKEN }}" >> .env | |
env: | |
NEXT_PUBLIC_DOTCMS_HOST: ${{ secrets.NEXT_PUBLIC_DOTCMS_HOST }} | |
NEXT_PUBLIC_AUTH_TOKEN: ${{ secrets.NEXT_PUBLIC_DOTCMS_AUTH_TOKEN }} | |
- name: Check build status | |
run: | | |
cat .env | |
npm i && npm run build && exit 0 || exit 1 | |