Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ jobs:
with:
deno-version: ${{ env.DENO_VERSION }}
- name: Check fmt & lint & type check & test
run: deno task check:dry
run: deno task check
10 changes: 4 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,19 @@ env:
on:
push:
tags:
- '*'
- "*"

permissions:
contents: read
id-token: write # The OIDC ID token is used for authentication with JSR.

id-token: write

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Deno
uses: denoland/setup-deno@v1
- uses: denoland/setup-deno@v1
with:
deno-version: ${{ env.DENO_VERSION }}
- name: Publish on tag
run: deno task publish
run: deno run --allow-env --allow-run=deno --allow-read --allow-write=deno.jsonc jsr:@david/publish-on-tag@0.1.4
39 changes: 8 additions & 31 deletions .github/workflows/udd.yml
Original file line number Diff line number Diff line change
@@ -1,42 +1,19 @@
# ported from https://github.com/jsr-core/unknownutil/blob/v3.18.1/.github/workflows/udd.yml and modified a bit
name: Update

env:
DENO_VERSION: 1.x
name: update

on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:

permissions:
contents: write
pull-requests: write

jobs:
udd:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v1
with:
deno-version: ${{ env.DENO_VERSION }}
- name: Update dependencies
run: |
deno task update > ../output.txt
env:
NO_COLOR: 1
- name: Read ../output.txt
id: log
uses: juliangruber/read-file-action@v1
- uses: hasundue/molt-action@v1
with:
path: ../output.txt
- uses: peter-evans/create-pull-request@v6
with:
commit-message: ":package: Update Deno dependencies"
title: ":package: Update Deno dependencies"
body: |
The output of `deno task update` is

```
${{ steps.log.outputs.content }}
```
branch: update-deno-dependencies
author: GitHub <noreply@github.com>
delete-branch: true
commit-prefix: ":package:"
12 changes: 6 additions & 6 deletions deno.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
"name": "@cosense/std",
"version": "0.0.0",
"tasks": {
"check": "deno fmt && deno lint --fix && deno check --remote **/*.ts && deno test --allow-read",
"check:dry": "deno fmt --check && deno lint && deno check --remote **/*.ts && deno test --allow-read",
"update:check": "deno run --allow-env --allow-read --allow-write=.,'~/.local/share/deno-wasmbuild' --allow-run=git,deno --allow-net=deno.land,raw.githubusercontent.com,esm.sh,jsr.io,api.jsr.io,registry.npmjs.org jsr:@molt/cli@0.19",
"update": "deno task update:check --write",
"publish:check": "deno task check:dry && deno publish --dry-run --allow-dirty",
"publish": "deno run --allow-env --allow-run=deno --allow-read --allow-write=deno.jsonc jsr:@david/publish-on-tag@0.1.x"
"fix": "deno fmt && deno lint --fix && deno test --allow-read --doc --parallel --shuffle && deno publish --dry-run --allow-dirty",
"check": "deno fmt --check && deno lint && deno test --allow-read --doc --parallel --shuffle && deno publish --dry-run",
"coverage": "deno test --allow-read=./ --parallel --shuffle --coverage && deno coverage --html",
// from https://github.com/jsr-core/unknownutil/blob/v4.2.2/deno.jsonc#L84-L85
"update": "deno run --allow-env --allow-read --allow-write=. --allow-run=git,deno --allow-net=jsr.io,registry.npmjs.org jsr:@molt/cli",
"update:commit": "deno task -q update --commit --prefix deps: --pre-commit=fix"
},
"imports": {
"@core/unknownutil": "jsr:@core/unknownutil@^4.0.0",
Expand Down