Skip to content

Commit 18605dd

Browse files
committed
Revert "refactor: migrate to jsr"
This reverts commit 5e7feb3.
1 parent d3dba4e commit 18605dd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+11107
-573
lines changed

.editorconfig

Lines changed: 0 additions & 3 deletions
This file was deleted.

.github/workflows/builder.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
init:
1717
runs-on: ubuntu-latest
1818
name: Initialize builds
19-
if: "${{ startsWith(github.event.head_commit.message, 'chore(release): ') }}"
19+
if: "startsWith(github.event.head_commit.message, 'chore(release): ')"
2020
outputs:
2121
changed_addons: ${{ steps.changed_addons.outputs.addons }}
2222
changed: ${{ steps.changed_addons.outputs.changed }}

.github/workflows/lint.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ jobs:
1414
find:
1515
name: Find add-ons
1616
runs-on: ubuntu-latest
17-
if: "${{ !startsWith(github.event.head_commit.message, 'chore(release): ') }}"
1817
outputs:
1918
addons: ${{ steps.addons.outputs.addons_list }}
2019
steps:
@@ -28,7 +27,6 @@ jobs:
2827
lint:
2928
name: Lint add-on ${{ matrix.path }}
3029
runs-on: ubuntu-latest
31-
if: "${{ !startsWith(github.event.head_commit.message, 'chore(release): ') }}"
3230
needs: find
3331
strategy:
3432
matrix:

.github/workflows/release-it.yaml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,7 @@ jobs:
1717
publish:
1818
runs-on: ubuntu-latest
1919

20-
if: "${{ !startsWith(github.event.head_commit.message, 'chore(release): ') }}"
21-
22-
permissions:
23-
contents: read
24-
id-token: write
20+
if: "!startsWith(github.event.head_commit.message, 'chore(release): ')"
2521

2622
# Steps represent a sequence of tasks that will be executed as part of the job
2723
steps:
@@ -36,11 +32,14 @@ jobs:
3632
git config --global user.name "Nils Bergmann"
3733
git config --global user.email "[email protected]"
3834
39-
- name: Release
40-
uses: juancarlosjr97/[email protected]
35+
- uses: actions/setup-node@v2
4136
with:
42-
github_token: ${{ secrets.RELEASE_TOKEN }}
43-
plugins_list: "@release-it/conventional-changelog,@j-ulrich/release-it-regex-bumper"
37+
node-version: "18"
38+
39+
- name: Installing dependencies
40+
run: npm ci
4441

45-
- name: Publish package
46-
run: npx jsr publish
42+
- name: Release It
43+
run: npm run release
44+
env:
45+
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}

.release-it.json

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,11 @@
1717
"search": "version: \"(?<version>{{semver}})\"",
1818
"versionCaptureGroup": "version"
1919
},
20-
"out": [
21-
{
22-
"file": "reactive_home/config.yaml",
23-
"search": "version: \"{{semver}}\"",
24-
"replace": "version: \"{{version}}\""
25-
},
26-
{
27-
"file": "deno.json",
28-
"search": "\"version\": \"{{semver}}\"",
29-
"replace": "\"version\": \"{{version}}\""
30-
}
31-
]
20+
"out": {
21+
"file": "reactive_home/config.yaml",
22+
"search": "version: \"{{semver}}\"",
23+
"replace": "version: \"{{version}}\""
24+
}
3225
}
3326
},
3427
"npm": {

deno.json

Lines changed: 1 addition & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,11 @@
11
{
22
"$schema": "https://deno.land/x/deno/cli/schemas/config-file.v1.json",
3-
"exports": {
4-
".": "./mod.ts",
5-
"./runtime": "./src/runtime/run.ts",
6-
"./loader": "./src/runtime/loader.ts"
7-
},
8-
"name": "@noim/reactive-home",
9-
"version": "0.8.3",
103
"fmt": {
114
"options": {
125
"indentWidth": 4
136
}
147
},
158
"tasks": {
16-
"test": "deno run --allow-all src/runtime/run.ts --root test-modules/ --local-test"
17-
},
18-
"imports": {
19-
"color-name": "npm:color-name@^2.0.0",
20-
"home-assistant-js-websocket": "npm:home-assistant-js-websocket@^9.3.0",
21-
"@vue/reactivity": "npm:@vue/reactivity@^3.4.25",
22-
"@vue/runtime-core": "npm:@vue/runtime-core@^3.4.25",
23-
"@vueuse/shared": "npm:@vueuse/shared@^10.9.0",
24-
"@std/fmt": "jsr:@std/fmt@^0.225.2",
25-
"@std/path": "jsr:@std/path@^0.225.1",
26-
"@std/dotenv": "jsr:@std/dotenv@^0.224.0",
27-
"@std/cli": "jsr:@std/cli@^0.224.4",
28-
"@std/fs": "jsr:@std/fs@^0.229.1",
29-
"fast-equals": "npm:fast-equals@^5.0.1",
30-
"date-fns": "npm:date-fns@^3.6.0",
31-
"suncalc3": "npm:@noim/suncalc3@^2.0.5",
32-
"parse-duration": "npm:parse-duration@^1.1.0"
33-
},
34-
"publish": {
35-
"exclude": [
36-
".vscode",
37-
".github",
38-
"test-modules",
39-
"repository.yaml",
40-
"update-lock-file.sh",
41-
".release-it.json",
42-
".editorconfig",
43-
"deno.lock",
44-
"reactive_home/Dockerfile",
45-
"reactive_home/build.yaml",
46-
"reactive_home/config.yaml",
47-
"src/testing/index.ts",
48-
"reactive_home/run.sh",
49-
"reactive_home/update-import-map.ts"
50-
]
9+
"test": "deno run --allow-all reactive_home/run.ts --root test-modules/"
5110
}
5211
}

0 commit comments

Comments
 (0)