Skip to content

chore: Fix plugins tests #104

chore: Fix plugins tests

chore: Fix plugins tests #104

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@de0fac2e4500dabe0009e67214ff5f5447ce83dd #v6.0.2
with:
submodules: "true"
- name: Use Node.js 20.x
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f #v6.3.0
with:
node-version: "20.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: |
npm i @nx/nx-linux-x64-gnu
npm clean-install
PUBLIC_URL=open-scd/pr-preview/pr-$PR_NUMBER npm run-script build
- name: Deploy preview
uses: rossjrw/pr-preview-action@ffa7509e91a3ec8dfc2e5536c4d5c1acdf7a6de9 #v1.8.1
with:
source-dir: packages/distribution/build
umbrella-dir: pr-preview