-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (29 loc) · 1.25 KB
/
jsr-publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Publish
on:
# push:
# branches:
# - release
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@v1
uses: denoland/setup-deno@61fe2df320078202e33d7d5ad347e7dcfa0e8f31 # v1.1.2
with:
deno-version: v1.x
- 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