Skip to content

Commit

Permalink
Revert "refactor: migrate to jsr"
Browse files Browse the repository at this point in the history
This reverts commit 5e7feb3.
  • Loading branch information
TheNoim committed May 30, 2024
1 parent d3dba4e commit 18605dd
Show file tree
Hide file tree
Showing 44 changed files with 11,107 additions and 573 deletions.
3 changes: 0 additions & 3 deletions .editorconfig

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/builder.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
init:
runs-on: ubuntu-latest
name: Initialize builds
if: "${{ startsWith(github.event.head_commit.message, 'chore(release): ') }}"
if: "startsWith(github.event.head_commit.message, 'chore(release): ')"
outputs:
changed_addons: ${{ steps.changed_addons.outputs.addons }}
changed: ${{ steps.changed_addons.outputs.changed }}
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ jobs:
find:
name: Find add-ons
runs-on: ubuntu-latest
if: "${{ !startsWith(github.event.head_commit.message, 'chore(release): ') }}"
outputs:
addons: ${{ steps.addons.outputs.addons_list }}
steps:
Expand All @@ -28,7 +27,6 @@ jobs:
lint:
name: Lint add-on ${{ matrix.path }}
runs-on: ubuntu-latest
if: "${{ !startsWith(github.event.head_commit.message, 'chore(release): ') }}"
needs: find
strategy:
matrix:
Expand Down
21 changes: 10 additions & 11 deletions .github/workflows/release-it.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,7 @@ jobs:
publish:
runs-on: ubuntu-latest

if: "${{ !startsWith(github.event.head_commit.message, 'chore(release): ') }}"

permissions:
contents: read
id-token: write
if: "!startsWith(github.event.head_commit.message, 'chore(release): ')"

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
Expand All @@ -36,11 +32,14 @@ jobs:
git config --global user.name "Nils Bergmann"
git config --global user.email "[email protected]"
- name: Release
uses: juancarlosjr97/[email protected]
- uses: actions/setup-node@v2
with:
github_token: ${{ secrets.RELEASE_TOKEN }}
plugins_list: "@release-it/conventional-changelog,@j-ulrich/release-it-regex-bumper"
node-version: "18"

- name: Installing dependencies
run: npm ci

- name: Publish package
run: npx jsr publish
- name: Release It
run: npm run release
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
17 changes: 5 additions & 12 deletions .release-it.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,11 @@
"search": "version: \"(?<version>{{semver}})\"",
"versionCaptureGroup": "version"
},
"out": [
{
"file": "reactive_home/config.yaml",
"search": "version: \"{{semver}}\"",
"replace": "version: \"{{version}}\""
},
{
"file": "deno.json",
"search": "\"version\": \"{{semver}}\"",
"replace": "\"version\": \"{{version}}\""
}
]
"out": {
"file": "reactive_home/config.yaml",
"search": "version: \"{{semver}}\"",
"replace": "version: \"{{version}}\""
}
}
},
"npm": {
Expand Down
43 changes: 1 addition & 42 deletions deno.json
Original file line number Diff line number Diff line change
@@ -1,52 +1,11 @@
{
"$schema": "https://deno.land/x/deno/cli/schemas/config-file.v1.json",
"exports": {
".": "./mod.ts",
"./runtime": "./src/runtime/run.ts",
"./loader": "./src/runtime/loader.ts"
},
"name": "@noim/reactive-home",
"version": "0.8.3",
"fmt": {
"options": {
"indentWidth": 4
}
},
"tasks": {
"test": "deno run --allow-all src/runtime/run.ts --root test-modules/ --local-test"
},
"imports": {
"color-name": "npm:color-name@^2.0.0",
"home-assistant-js-websocket": "npm:home-assistant-js-websocket@^9.3.0",
"@vue/reactivity": "npm:@vue/reactivity@^3.4.25",
"@vue/runtime-core": "npm:@vue/runtime-core@^3.4.25",
"@vueuse/shared": "npm:@vueuse/shared@^10.9.0",
"@std/fmt": "jsr:@std/fmt@^0.225.2",
"@std/path": "jsr:@std/path@^0.225.1",
"@std/dotenv": "jsr:@std/dotenv@^0.224.0",
"@std/cli": "jsr:@std/cli@^0.224.4",
"@std/fs": "jsr:@std/fs@^0.229.1",
"fast-equals": "npm:fast-equals@^5.0.1",
"date-fns": "npm:date-fns@^3.6.0",
"suncalc3": "npm:@noim/suncalc3@^2.0.5",
"parse-duration": "npm:parse-duration@^1.1.0"
},
"publish": {
"exclude": [
".vscode",
".github",
"test-modules",
"repository.yaml",
"update-lock-file.sh",
".release-it.json",
".editorconfig",
"deno.lock",
"reactive_home/Dockerfile",
"reactive_home/build.yaml",
"reactive_home/config.yaml",
"src/testing/index.ts",
"reactive_home/run.sh",
"reactive_home/update-import-map.ts"
]
"test": "deno run --allow-all reactive_home/run.ts --root test-modules/"
}
}
Loading

0 comments on commit 18605dd

Please sign in to comment.