Skip to content

Commit 941c0f4

Browse files
committed
Fixing issues around publishing the extension
1 parent 1dabc62 commit 941c0f4

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

.github/workflows/build.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,8 @@ jobs:
138138
environment: ${{ startsWith(github.ref, 'refs/tags/v') && 'deployments' || '' }}
139139
permissions:
140140
id-token: write # only used for npm publishing
141+
actions: read
142+
contents: write
141143
runs-on: buildjet-2vcpu-ubuntu-2204
142144
steps:
143145
- uses: actions/checkout@v6
@@ -235,4 +237,4 @@ jobs:
235237
- name: publish to NPM
236238
if: startsWith(github.ref, 'refs/tags/v')
237239
working-directory: rascal-vscode-extension
238-
run: npm publish --access=public
240+
run: npm publish --provenance --access=public

rascal-vscode-extension/package.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"license": "BSD-2-Clause",
2424
"repository": {
2525
"type": "git",
26-
"url": "https://github.com/usethesource/rascal-language-servers"
26+
"url": "git+https://github.com/usethesource/rascal-language-servers.git"
2727
},
2828
"bugs": {
2929
"url": "https://github.com/usethesource/rascal-language-servers/issues"
@@ -72,8 +72,8 @@
7272
"when": "false"
7373
},
7474
{
75-
"command": "rascalmpl.copySourceLocation",
76-
"when": "false"
75+
"command": "rascalmpl.copySourceLocation",
76+
"when": "false"
7777
}
7878
],
7979
"view/item/context": [
@@ -259,7 +259,11 @@
259259
"rascal.terminal.name.originFormat": {
260260
"type": "string",
261261
"default": "Project root",
262-
"enum": ["Project root", "Module (qualified)", "Module (unqualified)"],
262+
"enum": [
263+
"Project root",
264+
"Module (qualified)",
265+
"Module (unqualified)"
266+
],
263267
"markdownDescription": "Specifies the format of `<origin>` in Rascal terminal name `Rascal terminal (<origin>)`"
264268
}
265269
}

0 commit comments

Comments
 (0)