Publish examples (presets) #541
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish examples (presets) | |
on: | |
schedule: | |
- cron: "0 16 1/2 * *" | |
workflow_dispatch: | |
workflow_call: | |
jobs: | |
examples: | |
runs-on: ubuntu-latest | |
if: "github.repository == 'lowlighter/metrics'" | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Setup NodeJS | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
- name: Setup metrics | |
run: npm ci | |
- name: Publish presets examples | |
run: npm run presets -- publish | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |