build(deps-dev): bump undici from 7.2.0 to 7.2.1 in /e2e-test #6718
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: netlify | |
on: | |
push: | |
permissions: | |
statuses: write | |
deployments: write | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4.1.0 | |
with: | |
node-version: 20.x | |
# base: https://github.com/actions/setup-node/issues/214#issuecomment-810829250 | |
- name: Reconfigure git to use HTTPS authentication for npm-dependencies using Git | |
run: git config --global url."https://github.com/".insteadOf ssh://git@github.com/ | |
- run: npm ci | |
- run: SITE_URL="https://piping-ui.org" npm run build | |
- name: Deploy to Netlify | |
uses: nwtgck/actions-netlify@v3.0 | |
with: | |
publish-dir: './dist' | |
production-branch: master | |
# NOTE: "production-branch" has higher priory than "alias". | |
alias: git-${{ github.sha }} | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
enable-pull-request-comment: false | |
enable-commit-comment: false | |
env: | |
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} | |
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} | |
timeout-minutes: 1 | |
- name: Generate Netlify alias | |
shell: bash | |
run: ruby -e 'puts "netlify_alias=#{`git branch --show-current`.chomp.gsub(/[^a-zA-Z\d]/){"-"}.downcase}"' >> $GITHUB_OUTPUT | |
id: get_netlify_alias | |
# For branch deploy | |
- name: Deploy to Netlify (branch) | |
uses: nwtgck/actions-netlify@v3.0 | |
with: | |
publish-dir: './dist' | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
alias: ${{ steps.get_netlify_alias.outputs.netlify_alias }} | |
enable-pull-request-comment: false | |
enable-commit-comment: false | |
enable-commit-status: false | |
github-deployment-environment: 'branch' | |
env: | |
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} | |
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} | |
timeout-minutes: 1 |