Skip to content

Commit b71179c

Browse files
authored
Merge pull request #8 from lstreckeisen/setup-cml-grammar
Setup cml grammar
2 parents 5daf6a6 + a9210b0 commit b71179c

File tree

7 files changed

+5936
-3145
lines changed

7 files changed

+5936
-3145
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,16 @@ jobs:
6060
name: cml-language-server
6161
path: ./cml-ls/
6262

63-
- name: Setup .npmrc
64-
run: echo "@lstreckeisen:registry=https://npm.pkg.github.com\n//npm.pkg.github.com/:_authToken=\${{ secrets.NPM_PUBLISH_TOKEN }}" > ~/.npmrc
65-
working-directory: cml-ls
63+
- name: Prepare publication
64+
if: github.event_name == 'release' # Publish only on release creation
65+
run: |
66+
cp cml-ls.package.json cml-ls/package.json
67+
cp .yarnrc.yml cml-ls/.yarnrc.yml
68+
sed -i -e 's/<TOKEN>/${{ secrets.GITHUB_TOKEN }}/g' cml-ls/.yarnrc.yml
69+
cp -r .yarn cml-ls/.yarn
70+
touch cml-ls/yarn.lock
6671
6772
- name: Publish to GitHub Package Registry
6873
if: github.event_name == 'release' # Publish only on release creation
69-
run: yarn publish --access public
74+
run: yarn npm publish
7075
working-directory: cml-ls

.yarn/install-state.gz

417 KB
Binary file not shown.

.yarn/releases/yarn-4.8.1.cjs

Lines changed: 935 additions & 0 deletions
Large diffs are not rendered by default.

.yarnrc.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
nodeLinker: node-modules
2+
3+
npmAlwaysAuth: true
4+
5+
npmAuthToken: <TOKEN>
6+
7+
npmPublishAccess: public
8+
9+
npmPublishRegistry: "https://npm.pkg.github.com"
10+
11+
npmScopes:
12+
lstreckeisen:
13+
npmAlwaysAuth: true
14+
npmAuthToken: <TOKEN>
15+
npmPublishRegistry: "https://npm.pkg.github.com/lstreckeisen"
16+
17+
yarnPath: .yarn/releases/yarn-4.8.1.cjs

cml-ls.package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,6 @@
1414
"type": "url",
1515
"url": "https://github.com/lstreckeisen/context-mapper-language-server.git"
1616
},
17-
"main": ".index.js"
17+
"main": "index.js",
18+
"packageManager": "yarn@4.8.1"
1819
}

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,6 @@
4747
"langium-cli": "~3.4.0",
4848
"typescript": "~5.1.6",
4949
"vitest": "~1.4.0"
50-
}
50+
},
51+
"packageManager": "yarn@4.8.1"
5152
}

yarn.lock

Lines changed: 4971 additions & 3139 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)