[Static] Node.js CI (Fetch Resources) #65
This file contains hidden or 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: "[Static] Node.js CI (Fetch Resources)" | |
| on: | |
| schedule: | |
| - cron: "0 12 * * *" | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| jobs: | |
| update: | |
| defaults: | |
| run: | |
| working-directory: ./scripts | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Use PNPM Package Manager | |
| uses: pnpm/action-setup@v6 | |
| with: | |
| version: 11 | |
| - name: Run scripts | |
| run: pnpm tsx fetchResources.ts | |
| - uses: EndBug/add-and-commit@v10 | |
| with: | |
| add: '["packages/static/constants","packages/static/jsr.json"]' | |
| message: "Updated Constants" | |
| default_author: "github_actions" | |
| release: | |
| defaults: | |
| run: | |
| working-directory: ./packages/static | |
| runs-on: ubuntu-latest | |
| needs: update | |
| permissions: | |
| contents: read | |
| id-token: write | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| ref: ${{ github.ref }} | |
| - name: Use PNPM Package Manager | |
| uses: pnpm/action-setup@v6 | |
| with: | |
| version: 11 | |
| - run: pnpm install --frozen-lockfile | |
| - run: pnpm dlx jsr publish |