mirror of
https://github.com/anuraghazra/github-readme-stats.git
synced 2025-01-12 13:41:40 +08:00
48 lines
1.0 KiB
YAML
48 lines
1.0 KiB
YAML
name: Theme preview
|
|
on:
|
|
pull_request_target:
|
|
types: [opened, edited, reopened, synchronize]
|
|
branches:
|
|
- master
|
|
paths:
|
|
- "themes/index.js"
|
|
|
|
permissions:
|
|
actions: read
|
|
checks: read
|
|
contents: read
|
|
deployments: read
|
|
issues: read
|
|
discussions: read
|
|
packages: read
|
|
pages: read
|
|
pull-requests: write
|
|
repository-projects: read
|
|
security-events: read
|
|
statuses: read
|
|
|
|
jobs:
|
|
previewTheme:
|
|
name: Install & Preview
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
node-version: [18.x]
|
|
|
|
steps:
|
|
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
|
|
|
|
- name: Setup Node
|
|
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
cache: npm
|
|
|
|
- uses: bahmutov/npm-install@c5482d70ec8706408996e31ac94075030694993f # v1.8.32
|
|
with:
|
|
useLockFile: false
|
|
|
|
- run: npm run preview-theme
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|