perf(api): use cron triggers to update kv metadata (#935) #88
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: Release API | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- "api/**" | |
workflow_dispatch: | |
concurrency: ${{ github.workflow }}-${{ github.ref }} | |
jobs: | |
release: | |
name: Release | |
runs-on: ubuntu-latest | |
if: github.repository == 'fontsource/fontsource' | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v3 | |
- name: Enable PNPM | |
uses: pnpm/action-setup@v2 | |
- name: Set node version to 20 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "20" | |
cache: "pnpm" | |
- name: Install | |
run: pnpm install | |
- name: Create Release Pull Request or Publish Cloudflare | |
id: cs | |
uses: changesets/action@v1 | |
with: | |
version: "pnpm run ci:version" | |
publish: "pnpm run ci:publish-api" | |
commit: "chore(api): release versions" | |
title: "Release API 🤖" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} |