infra: theme preview gh action (#296)

* chore: testing theme preview script

* fix: workflow

* test current pr

* comment on pr script

* fix: preview theme script

* fix: preview theme
This commit is contained in:
Anurag Hazra
2020-08-02 22:47:34 +05:30
committed by GitHub
parent 6f7e35468c
commit 53c49404bf
3 changed files with 111 additions and 2 deletions

29
.github/workflows/preview-theme.yml vendored Normal file
View File

@ -0,0 +1,29 @@
name: Theme preview
on:
pull_request:
types: [opened, synchronize, reopened]
branches:
- master
- theme-preview-script
paths:
- "themes/index.js"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: setup node
uses: actions/setup-node@v1
with:
node-version: "12.x"
- name: npm install, preview theme
run: |
npm install
npm run preview-theme
env:
CI: true
PERSONAL_TOKEN: ${{ secrets.PERSONAL_TOKEN }}