forked from janus-idp/backstage-plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (36 loc) · 1.13 KB
/
pr-website.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Pull request website
# Do not abstract the build step into a separate workflow file, as it will run into pathname issues
on:
pull_request:
paths:
- '**/README.md'
jobs:
build-website:
name: Build website
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4
with:
repository: janus-idp/janus-idp.github.io
persist-credentials: false
fetch-depth: 0
- uses: pnpm/action-setup@v3
name: Install pnpm
id: pnpm-install
- name: Setup Node.js
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4
with:
node-version-file: '.nvmrc'
cache: 'pnpm'
- name: Install dependencies
run: |
pnpm install
if [[ $(git diff --name-only . || true) ]]; then
echo "After 'pnpm install', workspace is dirty! The following files have changed:"
echo
git diff --name-only . || true
exit 42
fi
- name: Run Build
run: pnpm run build --filter=website