Skip to content

build(deps): bump follow-redirects from 1.15.11 to 1.16.0 #676

build(deps): bump follow-redirects from 1.15.11 to 1.16.0

build(deps): bump follow-redirects from 1.15.11 to 1.16.0 #676

Workflow file for this run

# .github/workflows/preview.yml
name: Deploy PR previews
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
pull_request:
types:
- opened
- reopened
- synchronize
- closed
jobs:
deploy-preview:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v6
with:
persist-credentials: false
- uses: actions/setup-node@v6
with:
node-version: "24"
- run: npm install -g npm@latest
if: github.event.action != 'closed'
- name: Install
if: github.event.action != 'closed'
run: |
npm ci
- name: Always preview with the latest browserslist db
if: github.event.action != 'closed'
run: |
npx update-browserslist-db@latest
- name: Build web-component
if: github.event.action != 'closed'
run: |
# create the bundles required for studio-web
npx nx bundle web-component
- name: Build
if: github.event.action != 'closed'
run: |
sed -r -i 's:readalong-studio.mothertongues.org/:readalong-studio.mothertongues.org/pr-preview/pr-${{github.event.number}}/:g' packages/studio-web/src/environments/environment.prod.ts
npx nx build studio-web --base-href=/pr-preview/pr-${{github.event.number}}/ --configuration=production
npx nx build studio-web --base-href=/pr-preview/pr-${{github.event.number}}/ --configuration=production --localize=fr --deleteOutputPath=false
npx nx build studio-web --base-href=/pr-preview/pr-${{github.event.number}}/ --configuration=production --localize=es --deleteOutputPath=false
- name: Publish Deploy Preview 🛫
uses: rossjrw/pr-preview-action@8ff09e486b4c23709012eedd3b42e9f0b95dd0c5 # v1.6.3
with:
source-dir: dist/packages/studio-web
preview-branch: gh-pages
umbrella-dir: pr-preview
action: auto