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
6 changes: 3 additions & 3 deletions .github/workflows/jsr.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: jsr

env:
DENO_VERSION: 1.x
DENO_VERSION: 2.x

on:
push:
Expand All @@ -19,9 +19,9 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: denoland/setup-deno@v1
- uses: denoland/setup-deno@v2
with:
deno-version: ${{ env.DENO_VERSION }}
- name: Publish
run: |
deno run -A jsr:@david/publish-on-tag@0.1.3
deno run -A jsr:@david/publish-on-tag@0.2.0
41 changes: 26 additions & 15 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
- run: git config --global core.autocrlf false
if: runner.os == 'Windows'
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v1.1.4
- uses: denoland/setup-deno@v2
with:
deno-version: "${{ matrix.deno_version }}"
- uses: actions/cache@v4
Expand All @@ -60,14 +60,6 @@ jobs:
run: deno task check
- name: Doc check
run: deno task check:doc
- name: Gen check
run: |
deno task gen
git diff --exit-code
- name: Supported version inconsistency check
run: |
deno task apply:supported-versions
git diff --exit-code

test:
strategy:
Expand Down Expand Up @@ -146,13 +138,32 @@ jobs:
files: ./coverage.lcov
token: ${{ secrets.CODECOV_TOKEN }}

jsr-publish:
runs-on: ubuntu-latest
supported-version-check:
strategy:
matrix:
runner:
- ubuntu-latest
deno_version:
- "2.x"
runs-on: ${{ matrix.runner }}
steps:
- run: git config --global core.autocrlf false
if: runner.os == 'Windows'
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v1
- uses: denoland/setup-deno@v2
with:
deno-version: "${{ matrix.deno_version }}"
- uses: actions/cache@v4
with:
deno-version: ${{ env.DENO_VERSION }}
- name: Publish (dry-run)
key: deno-${{ hashFiles('**/*') }}
restore-keys: deno-
path: |
/home/runner/.cache/deno/deps/https/deno.land
- name: Gen check
run: |
deno task gen
git diff --exit-code
- name: Supported version inconsistency check
run: |
deno publish --dry-run
deno task apply:supported-versions
git diff --exit-code
17 changes: 0 additions & 17 deletions .github/workflows/update.yml

This file was deleted.

4 changes: 0 additions & 4 deletions deno.jsonc
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "@denops/std",
"version": "0.0.0",
"exports": {
".": "./mod.ts",
"./argument": "./argument/mod.ts",
Expand Down Expand Up @@ -97,9 +96,6 @@
"test": "deno test -A --parallel --shuffle",
"test:coverage": "deno task test --coverage=.coverage",
"coverage": "deno coverage .coverage",
"update": "deno run --allow-env --allow-read --allow-write --allow-run=git,deno --allow-net=deno.land,jsr.io,registry.npmjs.org jsr:@molt/cli deno.jsonc **/*.ts",
"update:write": "deno task -q update --write",
"update:commit": "deno task -q update --commit --prefix :package: --pre-commit=fmt,lint",
"gen:function": "deno run -A ./.scripts/gen-function/gen-function.ts",
"gen:option": "deno run -A ./.scripts/gen-option/gen-option.ts",
"gen": "deno task gen:function && deno task gen:option && deno fmt",
Expand Down
Loading