Skip to content

Commit 0e12e78

Browse files
committed
Dedicated task for the npm publish
1 parent 9c09629 commit 0e12e78

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/build.yaml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ on:
1212

1313

1414
jobs:
15-
build:
16-
environment: ${{ startsWith(github.ref, 'refs/tags/v') && 'deployments' || '' }}
15+
release-npm:
16+
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
17+
environment: deployments
1718
runs-on: ubuntu-latest
1819
permissions:
1920
id-token: write
@@ -37,9 +38,11 @@ jobs:
3738

3839
- name: Package & compile rascal-lsp
3940
working-directory: ./rascal-lsp
40-
run: mvn -B clean verify -DskipTests
41-
env:
42-
MAVEN_OPTS: "-Xmx6G"
41+
run: mvn -B clean verify -DskipTests -Drascal.compile.skip -Drascal.tutor.skip
42+
43+
- name: prepare packages that copy jars etc
44+
working-directory: rascal-vscode-extension
45+
run: npm run lsp4j:package
4346

4447
- name: rewrite package.json & readme for NPM package
4548
working-directory: rascal-vscode-extension
@@ -58,4 +61,4 @@ jobs:
5861
- name: publish to NPM
5962
if: startsWith(github.ref, 'refs/tags/v')
6063
working-directory: rascal-vscode-extension
61-
run: npm publish --provenance --access=public
64+
run: npm publish --provenance

0 commit comments

Comments
 (0)