Skip to content

Commit 830bcc7

Browse files
authored
fix(#82): make the framework update action work (#154)
1 parent c627d13 commit 830bcc7

7 files changed

Lines changed: 51 additions & 10096 deletions

File tree

.github/workflows/cd.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- uses: actions/checkout@v4
2121
- uses: actions/setup-node@v4
2222
with:
23-
node-version: 18
23+
node-version: 24
2424
- name: Install dependencies
2525
run: npm install --legacy-peer-deps
2626
- name: Build plugin

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- uses: actions/checkout@v4
1818
- uses: actions/setup-node@v4
1919
with:
20-
node-version: 18
20+
node-version: 24
2121
- name: Install dependencies
2222
run: npm install --legacy-peer-deps
2323
- name: Run check
@@ -31,7 +31,7 @@ jobs:
3131
- uses: actions/checkout@v4
3232
- uses: actions/setup-node@v4
3333
with:
34-
node-version: 18
34+
node-version: 24
3535
- name: Install dependencies
3636
run: npm install --legacy-peer-deps
3737
- name: Run check
@@ -45,7 +45,7 @@ jobs:
4545
- uses: actions/checkout@v4
4646
- uses: actions/setup-node@v4
4747
with:
48-
node-version: 18
48+
node-version: 24
4949
- name: Install dependencies
5050
run: npm install --legacy-peer-deps
5151
- name: Run check

.github/workflows/coverage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- uses: actions/checkout@v4
1919
- uses: actions/setup-node@v4
2020
with:
21-
node-version: 18
21+
node-version: 24
2222
- name: Install dependencies
2323
run: npm install --legacy-peer-deps
2424
- name: Generage coverage report

.github/workflows/update-framework.yml

Lines changed: 27 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,30 @@ permissions:
1111

1212
jobs:
1313
update-framework:
14-
runs-on: ubuntu-latest
15-
14+
runs-on: ubuntu-latest
1615
steps:
1716
- name: Checkout repository
1817
uses: actions/checkout@v4
19-
2018
- name: Setup Node.js
2119
uses: actions/setup-node@v4
2220
with:
23-
node-version: 18
24-
21+
node-version: 24
2522
- name: Install generator-joplin globally
2623
run: npm install -g generator-joplin yo
27-
2824
- name: Run framework update
29-
run: yo joplin --update --silent
30-
25+
run: yo joplin --update --silent --force --skip-install
26+
- name: New tsconfig.json content
27+
id: new-tsconfig-json
28+
run: |
29+
{
30+
echo 'content<<EOF'
31+
sed -e '$a\' tsconfig.json
32+
echo EOF
33+
} >> "$GITHUB_OUTPUT"
34+
- name: Revert tsconfig.json
35+
run: |
36+
git checkout -- tsconfig.json
37+
# Just tsconfig.json changes would not be important anyways
3138
- name: Check for changes
3239
id: changes
3340
run: |
@@ -36,24 +43,23 @@ jobs:
3643
else
3744
echo "has_changes=true" >> $GITHUB_OUTPUT
3845
fi
39-
40-
- name: Install dependencies
41-
run: npm install --legacy-peer-deps
42-
4346
- name: Create Pull Request
4447
if: steps.changes.outputs.has_changes == 'true'
4548
uses: peter-evans/create-pull-request@v6
4649
with:
47-
commit-message: 'chore: monthly joplin plugin framework update'
48-
title: 'chore: update joplin plugin framework (automated)'
50+
commit-message: 'chore: routine joplin plugin framework update'
51+
title: 'chore: routine joplin plugin framework update'
4952
body: |
50-
This is an automated pull request to update the Joplin plugin framework.
51-
52-
Please review the changes and ensure:
53-
- All tests pass
54-
- Build succeeds
55-
- No breaking changes introduced
53+
This is an automated pull request to update the joplin plugin framework.
54+
55+
## Some files were not updated from the framework
56+
57+
### tsconfig.json
58+
```json
59+
${{ steps.new-tsconfig-json.outputs.content }}
60+
```
5661
branch: chore/update-plugin-framework
5762
branch-suffix: timestamp
63+
committer: Albus <bot@nishantwrp.com>
64+
author: Albus <bot@nishantwrp.com>
5865
delete-branch: true
59-
labels: dependencies, automated

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node-options=--openssl-legacy-provider

0 commit comments

Comments
 (0)