-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Thanks to @sigmaSd for getting this off the ground! I vendored the last version of deno-snapshot_preview1 available (v0.206.0), added very basic type definitions for `Deno`, and sprinkled in some `as <type>` annotations into the codebase. I've also merged the "jsr publish" into the release workflow.
- Loading branch information
1 parent
fa50f98
commit b7786e3
Showing
8 changed files
with
1,866 additions
and
20 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 |
---|---|---|
|
@@ -9,6 +9,10 @@ jobs: | |
build: | ||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
contents: read | ||
id-token: write | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
|
@@ -31,12 +35,18 @@ jobs: | |
tag="${{ github.ref }}" | ||
tag="${tag/refs\/tags\/v/}" | ||
npm version $tag --no-git-tag-version --no-commit-hooks | ||
jsr="$(<jsr.json jq '. |.version = $version' --arg version "$tag")" | ||
echo "$jsr" >jsr.json | ||
- name: npm publish @extism/extism | ||
uses: JS-DevTools/[email protected] | ||
with: | ||
token: ${{ secrets.NPM_TOKEN }} | ||
|
||
- name: jsr publish @extism/extism | ||
run: | | ||
npx jsr publish | ||
- name: Update package name | ||
run: | | ||
pkg="$(<package.json jq '.name = "extism"')" | ||
|
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,7 @@ | ||
{ | ||
"name": "@extism/extism", | ||
"version": "0.0.0-replaced-by-ci", | ||
"exports": "./src/mod.ts", | ||
"include": ["./src/**/*.ts", "LICENSE", "README.md", "types", "tsconfig.json"], | ||
"exclude": ["./src/mod.test.ts"] | ||
} |
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
Oops, something went wrong.