Skip to content

Commit ac40071

Browse files
Replace yarn with npm (#113)
1 parent 9762708 commit ac40071

File tree

4 files changed

+2313
-1114
lines changed

4 files changed

+2313
-1114
lines changed

.github/workflows/deploy.yaml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,28 @@ jobs:
1616
uses: actions/setup-node@v4
1717
with:
1818
node-version-file: .nvmrc
19-
cache: yarn
2019

2120
- name: Install dependencies
22-
run: yarn install
21+
run: npm --color ci
22+
23+
- name: Read version from package.json
24+
run: |
25+
VERSION=$(node -p "require('./package.json').version")
26+
echo "version=$VERSION" >> $GITHUB_ENV
27+
28+
- name: Create Git tag
29+
run: |
30+
git tag ${{ env.version }}
31+
git push origin ${{ env.version }}
2332
2433
- name: Publish to Open VSX Registry
2534
id: publishToOpenVSX
26-
uses: HaaLeo/publish-vscode-extension@v1
35+
uses: HaaLeo/publish-vscode-extension@v2
2736
with:
2837
pat: ${{ secrets.OPEN_VSX_TOKEN }}
2938

3039
- name: Publish to Visual Studio Marketplace
31-
uses: HaaLeo/publish-vscode-extension@v1
40+
uses: HaaLeo/publish-vscode-extension@v2
3241
with:
3342
pat: ${{ secrets.VS_MARKETPLACE_TOKEN }}
3443
registryUrl: https://marketplace.visualstudio.com

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ registerLanguage(languageId, wasmPath);
3636

3737
### Setup
3838

39-
1. `yarn`
39+
1. `npm install`
4040

4141
### Adding a new language
4242

@@ -45,7 +45,7 @@ It's straightforward to add any [language with a tree-sitter grammar](https://tr
4545
1. Add a dependency on the npm package for that language in [tree-sitter-wasms](https://github.com/cursorless-dev/tree-sitter-wasms)
4646
2. Add a language to the dictionary at the top of `./src/extension.ts`
4747
3. Add a reference to `onLanguage:yourlang` to the [activationEvents section of package.json](package.json). `yourlang` must be a [VSCode language identifier](https://code.visualstudio.com/docs/languages/identifiers).
48-
4. Run `yarn compile`, then hit `F5` in VSCode, with this project open, to test your changes.
48+
4. Run `npm install` and `npm run compile`, then hit `F5` in VSCode, with this project open, to test your changes.
4949
5. Submit a PR!
5050

5151
### Developing on WSL2

0 commit comments

Comments
 (0)