Skip to content

Commit a5038c9

Browse files
committed
ci: add .nvmrc, use it in workflows and update tag creation worflow permissions
1 parent 4b18037 commit a5038c9

5 files changed

Lines changed: 8 additions & 5 deletions

File tree

.github/workflows/build-plugin-deb-package.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ jobs:
3333
3434
- name: Set up Node.js
3535
run: |
36-
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
37-
sudo apt-get install -y nodejs
36+
curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash -
37+
sudo apt-get install -y nodejs
3838
3939
- name: Verify Node.js installation
4040
run: |

.github/workflows/publish-tag.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ on:
1111
jobs:
1212
bump-version:
1313
runs-on: ubuntu-latest
14+
permissions:
15+
contents: write
1416

1517
steps:
1618
- name: Checkout repository
@@ -19,7 +21,7 @@ jobs:
1921
- name: Set up Node.js
2022
uses: actions/setup-node@v3
2123
with:
22-
node-version: '20'
24+
node-version-file: '.nvmrc'
2325

2426
- name: Get triggering user's email
2527
run: |

.github/workflows/ts-code-compilation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- name: install node
1515
uses: actions/setup-node@v4
1616
with:
17-
node-version: 20.x
17+
node-version-file: '.nvmrc'
1818
- name: run npm install
1919
run: npm install
2020
- name: typescript code compilation

.github/workflows/ts-code-validation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: install node
1616
uses: actions/setup-node@v4
1717
with:
18-
node-version: 20.x
18+
node-version-file: '.nvmrc'
1919
- name: run npm install
2020
run: npm install
2121
- name: typescript code validation with eslint

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
22

0 commit comments

Comments
 (0)