-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
30 changed files
with
599 additions
and
414 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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -4,5 +4,4 @@ updates: | |
directory: / | ||
schedule: | ||
interval: daily | ||
target-branch: dev | ||
labels: [] |
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,45 @@ | ||
name: 🚀 Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- deno.json | ||
|
||
permissions: | ||
contents: write | ||
id-token: write | ||
|
||
jobs: | ||
Release: | ||
runs-on: Ubuntu-Latest | ||
|
||
steps: | ||
- name: 🚚 Checkout Repository | ||
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | ||
|
||
- name: 📦 Get the Package Version | ||
uses: notiz-dev/github-action-json-property@a5a9c668b16513c737c3e1f8956772c99c73f6e8 # v0.2.0 | ||
id: version | ||
with: | ||
path: deno.json | ||
prop_path: version | ||
|
||
- name: 🔍 Detect the Version has Changed | ||
id: version-has-changed | ||
run: | | ||
tag="$(git tag -l | sort -V | tail -n 1)" | ||
if [[ "$tag" == "v${{ steps.version.outputs.prop }}" ]]; then | ||
echo "stop=true" | tee -a "$GITHUB_OUTPUT" | ||
fi | ||
- name: 🚀 Rrelease a New Version | ||
if: ${{ steps.version-has-changed.outputs.stop != 'true' }} | ||
run: gh release create "v${{ steps.version.outputs.prop }}" --generate-notes | ||
env: | ||
GH_TOKEN: ${{ github.token }} | ||
|
||
- name: ⬆️ Publish to JSR | ||
if: ${{ steps.version-has-changed.outputs.stop != 'true' }} | ||
run: npx jsr publish |
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 |
---|---|---|
@@ -1,25 +1,24 @@ | ||
{ | ||
"$schema": "https://deno.land/x/deno/cli/schemas/config-file.v1.json", | ||
"fmt": { "exclude": ["LICENSE", ".github/**/*.md"] }, | ||
"name": "@5ouma/reproxy", | ||
"version": "1.0.0", | ||
"exports": { ".": "./src/app.ts", "./serve": "./src/server.ts" }, | ||
"publish": { | ||
"include": ["LICENSE", "README.md", "deno.json", "src/"], | ||
"exclude": ["**/*.test.ts", "src/libs/test_utils.ts"] | ||
}, | ||
"fmt": { "exclude": ["LICENSE", "README.md", ".github/**/*.md"] }, | ||
"tasks": { | ||
"run": "deno run --env='.env' --allow-env='REPOSITORY_OWNER,REPOSITORY_NAME,REPOSITORY_PATH,GITHUB_TOKEN' --allow-net='0.0.0.0,api.github.com'", | ||
"start": "deno task run ./src/server.ts", | ||
"dev": "deno task run --watch ./src/server.ts", | ||
"test": "deno test --allow-env='REPOSITORY_OWNER,REPOSITORY_NAME,REPOSITORY_PATH,GITHUB_TOKEN' --allow-net='api.github.com' --parallel --shuffle", | ||
"start": "deno task run src/server.ts", | ||
"dev": "deno task run --watch src/server.ts", | ||
"test": "deno test --allow-env='REPOSITORY_OWNER,REPOSITORY_NAME,REPOSITORY_PATH,GITHUB_TOKEN' --allow-net='0.0.0.0,api.github.com' --parallel --shuffle", | ||
"cov": "deno task test --coverage && deno coverage --lcov > coverage.lcov" | ||
}, | ||
"imports": { | ||
"@oak/oak": "jsr:@oak/[email protected]", | ||
"@octokit/rest": "https://esm.sh/@octokit/[email protected]", | ||
"@hono/hono": "jsr:@hono/[email protected]", | ||
"@std/assert": "jsr:@std/[email protected]", | ||
"@std/fmt": "jsr:@std/[email protected]", | ||
"@std/http": "jsr:@std/[email protected]", | ||
"@std/http/user-agent": "jsr:@std/http@~0.223/user-agent", | ||
"@std/path": "jsr:@std/[email protected]" | ||
}, | ||
"deploy": { | ||
"project": "reproxy", | ||
"include": ["./deno.json", "./src/"], | ||
"entrypoint": "./src/server.ts" | ||
"@std/path": "jsr:@std/[email protected]", | ||
"@octokit/rest": "npm:@octokit/[email protected]" | ||
} | ||
} |
Oops, something went wrong.