Skip to content

chore: release main #229

chore: release main

chore: release main #229

Workflow file for this run

name: Deploy PR previews
on:
pull_request:
types:
- opened
- reopened
- synchronize
- closed
paths:
- "packages/**"
concurrency: preview-${{ github.ref }}
env:
PR_NUMBER: ${{ github.event.number }}
jobs:
deploy-preview:
permissions: write-all
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 #v7.0.0
with:
submodules: "true"
- name: Setup pnpm
uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9
with:
cache: true
- name: Use Node.js 24.x
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e #v6.4.0
with:
node-version: "24.x"
- name: Install and Build OpenSCD
if: github.event.action != 'closed' # You might want to skip the build if the PR has been closed
run: |
pnpm i @nx/nx-linux-x64-gnu
pnpm clean-install
PUBLIC_URL=open-scd/pr-preview/pr-$PR_NUMBER pnpm run-script build
- name: Deploy preview
uses: rossjrw/pr-preview-action@ffa7509e91a3ec8dfc2e5536c4d5c1acdf7a6de9 #v1.8.1
with:
source-dir: packages/distribution/dist
umbrella-dir: pr-preview