Looks like the `publish.yml` workflow also needs a `deno install` step, the current one fails with missing types, see here -> https://github.com/denoland/fresh/actions/runs/18017720086/job/51266850091#step:4:6 I have no clue why the `deploy.yml` workflow failed with `vite: command not found` (see here -> https://github.com/denoland/fresh/actions/runs/18017526863/job/51266206092?pr=3493#step:4:6). That should work IMHO.
31 lines
500 B
YAML
31 lines
500 B
YAML
name: Publish JSR
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
publish:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
id-token: write
|
|
|
|
# Skip publishing for forks
|
|
if: github.repository_owner == 'denoland'
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Install Deno
|
|
uses: denoland/setup-deno@v2
|
|
with:
|
|
cache: true
|
|
|
|
- name: Install dependencies
|
|
run: deno install
|
|
|
|
- name: Publish
|
|
run: deno publish
|