Skip to content

chore: Add package-lock.json because otherwise publish step shits the… #24

chore: Add package-lock.json because otherwise publish step shits the…

chore: Add package-lock.json because otherwise publish step shits the… #24

Workflow file for this run

name: Publish
on:
push:
branches:
- main
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
# TODO: A potential idea here would be to walk the libs hierarchy and only publish the packages that have newer versions specified than what is already published.
steps:
- uses: actions/checkout@v4
- name: Setup Deno
uses: denoland/setup-deno@v2
with:
deno-version: v2.x
- uses: oven-sh/setup-bun@v1
- run: bun install
- name: npm install
run: npm install
- name: Publish libs/ts/assert-never if needed...
working-directory: libs/ts/assert-never
run: deno run --allow-read --allow-net --allow-run ../jsr-metadata/publish-if-local-version-is-newer.deno.ts
- name: Publish libs/ts/date if needed...
working-directory: libs/ts/date
run: deno run --allow-read --allow-net --allow-run ../jsr-metadata/publish-if-local-version-is-newer.deno.ts
- name: Publish libs/ts/detect-runtime if needed...
working-directory: libs/ts/detect-runtime
run: deno run --allow-read --allow-net --allow-run ../jsr-metadata/publish-if-local-version-is-newer.deno.ts