-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Generating jsr.json and publishing from GA * Appending to deno.json instead * Don't need jsr.json anymore * Added missing explicit types and replaced jsr dependencies * Upgraded deno/dnt * Fix fomatting
- Loading branch information
Showing
14 changed files
with
101 additions
and
62 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,64 @@ | ||
name: Publish | ||
|
||
on: | ||
push: | ||
tags: | ||
- "effection-v*" | ||
|
||
permissions: | ||
contents: read | ||
id-token: write | ||
|
||
jobs: | ||
publish-npm: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: setup deno | ||
uses: denoland/setup-deno@v2 | ||
with: | ||
deno-version: v2.x | ||
|
||
- name: Get Version | ||
id: vars | ||
run: echo ::set-output name=version::$(echo ${{github.ref_name}} | sed 's/^effection-v//') | ||
|
||
- name: Setup Node | ||
uses: actions/[email protected] | ||
with: | ||
node-version: 18.x | ||
registry-url: https://registry.npmjs.com | ||
|
||
- name: Build NPM | ||
run: deno task build:npm ${{steps.vars.outputs.version}} | ||
|
||
- name: Publish NPM | ||
run: npm publish --access=public | ||
working-directory: ./build/npm | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}} | ||
|
||
publish-jsr: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: setup deno | ||
uses: denoland/setup-deno@v2 | ||
with: | ||
deno-version: v2.x | ||
|
||
- name: Get Version | ||
id: vars | ||
run: echo ::set-output name=version::$(echo ${{github.ref_name}} | sed 's/^effection-v//') | ||
|
||
- name: Build JSR | ||
run: deno task build:jsr ${{steps.vars.outputs.version}} | ||
|
||
- name: Publish JSR | ||
run: npx jsr publish --allow-dirty |
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 |
---|---|---|
|
@@ -3,4 +3,4 @@ | |
|
||
# Local Netlify folder | ||
.netlify | ||
/build/ | ||
/build/ |
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,2 +1,2 @@ | ||
export { assert } from "https://deno.land/std@0.158.0/testing/asserts.ts"; | ||
export * from "https://deno.land/x/[email protected].5/mod.ts"; | ||
export { assert } from "jsr:@std/[email protected]"; | ||
export * from "jsr:@frontside/[email protected].6"; |
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
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
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
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import jsonDeno from "../deno.json" with { type: "json" }; | ||
|
||
await Deno.writeTextFile( | ||
new URL("../deno.json", import.meta.url), | ||
JSON.stringify({ | ||
...jsonDeno, | ||
version: Deno.env.get("VERSION"), | ||
}), | ||
); |
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,4 @@ | ||
import { | ||
build, | ||
emptyDir, | ||
} from "https://deno.land/x/[email protected]/mod.ts?pin=v123"; | ||
import { build, emptyDir } from "jsr:@deno/[email protected]"; | ||
|
||
const outDir = "./build/npm"; | ||
|
||
|
@@ -21,7 +18,7 @@ await build({ | |
test: false, | ||
typeCheck: false, | ||
compilerOptions: { | ||
lib: ["esnext", "dom"], | ||
lib: ["ESNext", "DOM"], | ||
target: "ES2020", | ||
sourceMap: true, | ||
}, | ||
|
@@ -31,8 +28,8 @@ await build({ | |
version, | ||
description: "Structured concurrency and effects for JavaScript", | ||
license: "ISC", | ||
author: "[email protected]", | ||
repository: { | ||
author: "[email protected]", | ||
type: "git", | ||
url: "git+https://github.com/thefrontside/effection.git", | ||
}, | ||
|
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