Skip to content

Updated content from confluence. #64

Updated content from confluence.

Updated content from confluence. #64

Workflow file for this run

name: PR
on:
pull_request:
types:
- opened
- reopened
- synchronize
- closed
branches:
- main
workflow_dispatch:
concurrency: preview-${{ github.ref }}
permissions:
contents: write
pull-requests: write
jobs:
build-and-deploy:
runs-on: ubuntu-24.04
defaults:
run:
working-directory: ./patterns
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
- uses: actions/setup-node@v4
if: github.event.action != 'closed'
with:
node-version: 20
cache: npm
cache-dependency-path: patterns/package-lock.json
- name: Install dependencies
if: github.event.action != 'closed'
run: npm ci --ignore-scripts
- name: Install Dependencies and Build For PR🔧
if: github.event.action != 'closed'
env:
BASE_URL: /nr-architecture-patterns-library/pr-preview/pr-${{github.event.number}}
run: |
npm run build
- name: Deploy preview
uses: rossjrw/pr-preview-action@v1
with:
source-dir: ./patterns/build