2020-08-03 01:17:34 +08:00
|
|
|
name: Theme preview
|
|
|
|
on:
|
2020-08-09 23:39:12 +08:00
|
|
|
pull_request_target:
|
2022-10-01 20:01:29 +08:00
|
|
|
types: [opened, edited, reopened, synchronize]
|
2020-08-03 01:17:34 +08:00
|
|
|
branches:
|
|
|
|
- master
|
2022-09-17 19:42:16 +08:00
|
|
|
paths:
|
2020-08-03 01:17:34 +08:00
|
|
|
- "themes/index.js"
|
|
|
|
|
|
|
|
jobs:
|
2022-10-01 20:01:29 +08:00
|
|
|
previewTheme:
|
2022-10-02 17:05:13 +08:00
|
|
|
name: Install & Preview
|
2020-08-03 01:17:34 +08:00
|
|
|
runs-on: ubuntu-latest
|
2022-10-02 16:38:07 +08:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
node-version: [16.x]
|
2021-11-06 22:58:39 +08:00
|
|
|
|
2020-08-03 01:17:34 +08:00
|
|
|
steps:
|
2022-10-01 20:01:29 +08:00
|
|
|
- uses: actions/checkout@v3
|
2022-10-02 16:38:07 +08:00
|
|
|
|
|
|
|
- name: Setup Node
|
|
|
|
uses: actions/setup-node@v3
|
2022-10-01 20:01:29 +08:00
|
|
|
with:
|
2022-10-02 16:38:07 +08:00
|
|
|
node-version: ${{ matrix.node-version }}
|
|
|
|
cache: npm
|
|
|
|
|
2021-01-10 16:08:11 +08:00
|
|
|
- uses: bahmutov/npm-install@v1
|
2021-01-10 16:41:21 +08:00
|
|
|
with:
|
|
|
|
useLockFile: false
|
2022-10-02 16:38:07 +08:00
|
|
|
|
2021-01-10 16:08:11 +08:00
|
|
|
- run: npm run preview-theme
|
2020-08-03 01:17:34 +08:00
|
|
|
env:
|
2022-10-01 20:01:29 +08:00
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|