-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: replace path class with
jsr:@david/path
(#285)
- Loading branch information
Showing
15 changed files
with
216 additions
and
2,490 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,9 +12,6 @@ jobs: | |
if: | | ||
github.event_name == 'push' || | ||
!startsWith(github.event.pull_request.head.label, 'dsherret:') | ||
permissions: | ||
contents: read | ||
id-token: write | ||
runs-on: ${{ matrix.os }} | ||
timeout-minutes: 30 | ||
strategy: | ||
|
@@ -26,6 +23,8 @@ jobs: | |
|
||
- name: Install deno | ||
uses: denoland/setup-deno@v1 | ||
with: | ||
deno-version: canary | ||
|
||
- uses: dprint/[email protected] | ||
if: runner.os == 'Linux' | ||
|
@@ -48,11 +47,22 @@ jobs: | |
- name: npm build | ||
run: deno run -A ./scripts/build_npm.ts ${{steps.get_tag_version.outputs.TAG_VERSION}} | ||
|
||
- name: Publish to JSR on tag | ||
if: runner.os == 'Linux' | ||
run: deno run -A jsr:@david/[email protected] | ||
- name: npm publish | ||
if: startsWith(github.ref, 'refs/tags/') && runner.os == 'Linux' | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
run: cd npm && npm publish | ||
|
||
jsr: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
id-token: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install deno | ||
uses: denoland/setup-deno@v1 | ||
with: | ||
deno-version: canary | ||
- name: Publish to JSR on tag | ||
run: deno run -A jsr:@david/[email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"name": "@david/dax", | ||
"version": "0.0.0", | ||
"nodeModulesDir": false, | ||
"nodeModulesDir": "none", | ||
"tasks": { | ||
"test": "deno test -A", | ||
"wasmbuild": "deno run -A https://deno.land/x/[email protected]/main.ts --sync --out ./src/lib" | ||
|
@@ -32,14 +32,15 @@ | |
], | ||
"exports": "./mod.ts", | ||
"imports": { | ||
"@deno/dnt": "jsr:@deno/dnt@^0.41.1", | ||
"@std/assert": "jsr:@std/assert@^0.221.0", | ||
"@std/fmt": "jsr:@std/fmt@^0.221.0", | ||
"@std/fs": "jsr:@std/[email protected]", | ||
"@std/io": "jsr:@std/[email protected]", | ||
"@std/path": "jsr:@std/[email protected]", | ||
"@std/streams": "jsr:@std/[email protected]", | ||
"which": "jsr:@david/which@^0.4.1", | ||
"@deno/dnt": "jsr:@deno/dnt@~0.41.3", | ||
"@david/path": "jsr:@david/[email protected]", | ||
"@std/assert": "jsr:@std/assert@1", | ||
"@std/fmt": "jsr:@std/fmt@1", | ||
"@std/fs": "jsr:@std/fs@1", | ||
"@std/io": "jsr:@std/[email protected]", | ||
"@std/path": "jsr:@std/path@1", | ||
"@std/streams": "jsr:@std/[email protected]", | ||
"which": "jsr:@david/which@~0.4.1", | ||
"which_runtime": "jsr:@david/[email protected]" | ||
} | ||
} |
Oops, something went wrong.