mirror of
https://github.com/anuraghazra/github-readme-stats.git
synced 2025-01-12 13:41:40 +08:00
de4efa9ea1
This commit fixes a bug that is present when the `read` option is used for the `id-token` permission (see https://github.com/github/docs/issues/26481).
48 lines
916 B
YAML
48 lines
916 B
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@v3
|
|
|
|
- name: Setup Node
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
cache: npm
|
|
|
|
- uses: bahmutov/npm-install@v1
|
|
with:
|
|
useLockFile: false
|
|
|
|
- run: npm run preview-theme
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|