Skip to content

Commit ade7543

Browse files
authored
Migrate package manager to PNPM (#29)
1 parent b62498e commit ade7543

File tree

7 files changed

+573
-651
lines changed

7 files changed

+573
-651
lines changed

.github/workflows/release.yaml

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,23 @@ jobs:
1111
steps:
1212
- name: Checkout
1313
uses: actions/checkout@v4
14+
- name: Install pnpm
15+
uses: pnpm/action-setup@v4
16+
with:
17+
version: 10
18+
run_install: false
1419
- name: Set-up Node
1520
uses: actions/setup-node@v4
1621
with:
17-
node-version: '18'
18-
cache: 'yarn'
19-
registry-url: 'https://registry.npmjs.org'
20-
- name: Cache dependencies
21-
uses: actions/cache@v3
22-
with:
23-
path: |
24-
~/.cache
25-
key: dependencies-v1-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
22+
node-version: 20
23+
cache: 'pnpm'
2624
- name: Install deps
27-
run: yarn install --frozen-lockfile
25+
run: pnpm install
2826
- name: Test
29-
run: yarn test:ts
27+
run: pnpm test:ts
3028
- name: Build Changelog
3129
id: build_changelog
32-
uses: mikepenz/release-changelog-builder-action@v4
30+
uses: mikepenz/release-changelog-builder-action@v5
3331
with:
3432
configurationJson: |
3533
{
@@ -68,7 +66,7 @@ jobs:
6866
env:
6967
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7068
- name: Create a release
71-
uses: softprops/action-gh-release@v1
69+
uses: softprops/action-gh-release@v2
7270
with:
7371
files: |
7472
custom-more-info.js

custom-more-info.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,21 @@
99
"scripts": {
1010
"build": "rollup --config rollup.config.js --bundleConfigAsCjs",
1111
"test:ts": "tsc --noEmit",
12-
"prepare": "yarn build",
13-
"prepublishOnly": "yarn test:ts",
12+
"prepare": "pnpm build",
13+
"prepublishOnly": "pnpm test:ts",
1414
"version": "git add .",
1515
"postversion": "git push && git push --tags"
1616
},
1717
"devDependencies": {
1818
"@rollup/plugin-json": "^6.1.0",
19-
"@rollup/plugin-node-resolve": "^15.2.3",
20-
"rollup": "^4.8.0",
21-
"rollup-plugin-terser": "^7.0.2",
22-
"rollup-plugin-ts": "^3.4.5",
23-
"typescript": "^5.3.3"
19+
"@rollup/plugin-node-resolve": "^16.0.1",
20+
"@rollup/plugin-terser": "^0.4.4",
21+
"@rollup/plugin-typescript": "^12.1.2",
22+
"rollup": "^4.40.2",
23+
"typescript": "^5.8.3"
2424
},
2525
"dependencies": {
2626
"get-promisable-result": "^1.0.1",
27-
"home-assistant-query-selector": "^4.0.0"
27+
"home-assistant-query-selector": "^4.3.0"
2828
}
2929
}

0 commit comments

Comments
 (0)