Bump fs-extra from 11.3.5 to 11.3.6 (#2377) #430
This file contains hidden or 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: Deploy to GCS Stage | |
| on: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| test-website: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: "22" | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Test current build | |
| run: npm run test-ci | |
| continue-on-error: true | |
| deploy-stage: | |
| runs-on: ubuntu-latest | |
| needs: test-website | |
| if: ${{ success() }} | |
| environment: stage | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v3 | |
| - name: Set up Google Cloud SDK | |
| uses: google-github-actions/auth@v2 | |
| with: | |
| credentials_json: ${{ secrets.GCP_SA_KEY }} | |
| - name: Set up gcloud | |
| uses: google-github-actions/setup-gcloud@v2 | |
| - name: Build the website | |
| run: | | |
| npm ci | |
| npm run build:production | |
| - name: Build version.json file | |
| run: | | |
| if [ -e version.json ]; then | |
| echo "version.json exists, skipping build" | |
| else | |
| echo "version.json does not exist, running build-version-json.sh" | |
| bash ./.utils/build-version-json.sh | |
| fi | |
| - name: Deploy the website to stage | |
| run: | | |
| sh ./.utils/gcs-deploy.sh ${{ vars.EXTENSIONWORKSHOP_BUCKET_STAGE }} |