chore(deps): bump tar from 7.5.9 to 7.5.10 in the npm_and_yarn group across 1 directory #875
Workflow file for this run
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: Publish | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| workflow_dispatch: | |
| workflow_call: | |
| jobs: | |
| build-and-upload: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Checkout PR | |
| if: ${{ github.event_name == 'pull_request' }} | |
| uses: actions/checkout@v3 | |
| with: | |
| ref: ${{ github.event.pull_request.head.sha }} | |
| repository: ${{ github.event.pull_request.head.repo.full_name }} | |
| - name: Checkout | |
| if: ${{ github.event_name != 'pull_request' }} | |
| uses: actions/checkout@v3 | |
| with: | |
| ref: main | |
| - name: Setup Pages | |
| uses: actions/configure-pages@v5 | |
| - name: Use Node.js | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: 22.x | |
| cache: npm | |
| - name: Update npm to latest | |
| run: npm i --prefer-online --no-fund --no-audit -g npm@latest | |
| - run: npm -v | |
| - run: npm i --ignore-scripts --no-audit --no-fund --package-lock | |
| - run: npm run build -w www | |
| - name: Upload artifact | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: './workspaces/www/build' | |
| deploy: | |
| runs-on: ubuntu-latest | |
| needs: build-and-upload | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| permissions: | |
| pages: write | |
| id-token: write | |
| outputs: | |
| deployment_url: ${{ steps.deployment.outputs.page_url }} | |
| steps: | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 | |
| with: | |
| preview: ${{ github.event_name == 'pull_request_target' }} |