Skip to content

Commit 944f2b1

Browse files
authored
Fix GitHub Actions npm publishing (#2110)
1 parent 26280f7 commit 944f2b1

19 files changed

Lines changed: 5 additions & 76 deletions

File tree

.github/workflows/publish.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ name: Publish
22

33
permissions:
44
id-token: write
5-
# Required to mark the action as cancelled
6-
actions: write
75

86
on:
97
push:
@@ -13,6 +11,8 @@ on:
1311
- 'maintenance/**'
1412
paths:
1513
- '**/package.json'
14+
# Also trigger if the publish workflow itself is changed
15+
- '.github/workflows/publish.yml'
1616

1717
jobs:
1818
publish:
@@ -29,7 +29,9 @@ jobs:
2929
registry-url: 'https://registry.npmjs.org'
3030
- name: Build
3131
shell: bash
32+
# Ensure latest npm version
3233
run: |
34+
npm i -g npm
3335
npm ci
3436
npm run build:clean
3537
npm run langium:generate:production --workspace=langium

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20
1+
24

examples/arithmetics/package.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,6 @@
7575
"devDependencies": {
7676
"langium-cli": "~4.2.0"
7777
},
78-
"volta": {
79-
"node": "20.19.2",
80-
"npm": "10.8.2"
81-
},
8278
"repository": {
8379
"type": "git",
8480
"url": "git+https://github.com/eclipse-langium/langium.git",

examples/domainmodel/package.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,6 @@
6767
"devDependencies": {
6868
"langium-cli": "~4.2.0"
6969
},
70-
"volta": {
71-
"node": "20.19.2",
72-
"npm": "10.8.2"
73-
},
7470
"repository": {
7571
"type": "git",
7672
"url": "git+https://github.com/eclipse-langium/langium.git",

examples/requirements/package.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,6 @@
7777
"devDependencies": {
7878
"langium-cli": "~4.2.0"
7979
},
80-
"volta": {
81-
"node": "20.19.2",
82-
"npm": "10.8.2"
83-
},
8480
"repository": {
8581
"type": "git",
8682
"url": "git+https://github.com/eclipse-langium/langium.git",

examples/statemachine/package.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,6 @@
6565
"devDependencies": {
6666
"langium-cli": "~4.2.0"
6767
},
68-
"volta": {
69-
"node": "20.19.2",
70-
"npm": "10.8.2"
71-
},
7268
"repository": {
7369
"type": "git",
7470
"url": "git+https://github.com/eclipse-langium/langium.git",

package.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,6 @@
5555
"optionalDependencies": {
5656
"@rollup/rollup-linux-x64-gnu": "^4"
5757
},
58-
"volta": {
59-
"node": "20.19.2",
60-
"npm": "10.8.2"
61-
},
6258
"workspaces": [
6359
"packages/langium",
6460
"packages/langium-railroad",

packages/generator-langium/package.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,6 @@
4545
"@yeoman/types": "~1.9.1",
4646
"yeoman-test": "~11.2.0"
4747
},
48-
"volta": {
49-
"node": "20.19.2",
50-
"npm": "10.8.2",
51-
"yo": "6.0.0"
52-
},
5348
"repository": {
5449
"type": "git",
5550
"url": "git+https://github.com/eclipse-langium/langium.git",

packages/generator-langium/templates/package.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@
1717
"shx": "~0.4.0",
1818
"typescript": "~5.8.3"
1919
},
20-
"volta": {
21-
"node": "20.19.2",
22-
"npm": "10.8.2"
23-
},
2420
"workspaces": [
2521
"packages/language"
2622
]

packages/generator-langium/templates/packages/cli-example/package.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,5 @@
2424
"<%= language-id %>-language": "0.0.1",
2525
"chalk": "~5.3.0",
2626
"commander": "~11.1.0"
27-
},
28-
"volta": {
29-
"node": "20.19.2",
30-
"npm": "10.8.2"
3127
}
3228
}

0 commit comments

Comments
 (0)