Skip to content

Commit

Permalink
chore: migrate to pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
amrbashir committed Aug 28, 2024
1 parent 96db9d5 commit a50b071
Show file tree
Hide file tree
Showing 6 changed files with 421 additions and 353 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,20 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: 18
cache: 'yarn'
- run: yarn
node-version: 20
cache: 'pnpm'
- run: pnpm i
- name: Publish to Open VSX Registry
uses: HaaLeo/publish-vscode-extension@v1
with:
pat: ${{ secrets.OPEN_VSX_TOKEN }}
yarn: true
dependencies: false
- name: Publish to Visual Studio Marketplace
uses: HaaLeo/publish-vscode-extension@v1
with:
pat: ${{ secrets.VSCE_TOKEN }}
registryUrl: https://marketplace.visualstudio.com
yarn: true
dependencies: false
14 changes: 7 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ jobs:
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: 18
cache: 'yarn'
- name: install dependencies
run: yarn
- name: compile extension
run: yarn compile
node-version: 'lts/*'
cache: 'pnpm'

- run: pnpm i --frozen-lockfile
- run: pnpm compile
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ The extension automatically pulls the [latest config schema](https://github.com/

# Contributing

Following [the official guide](https://code.visualstudio.com/api/get-started/your-first-extension), run `yarn` to install dependencies, `yarn compile` to build your changes and press `F5` to open a new `Extension Development Host` window.
Following [the official guide](https://code.visualstudio.com/api/get-started/your-first-extension), run `pnpm i` to install dependencies, `pnpm compile` to build your changes and press `F5` to open a new `Extension Development Host` window.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
]
},
"scripts": {
"vscode:prepublish": "yarn run compile",
"vscode:prepublish": "pnpm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"format": "prettier ./**/*.{json,ts,js} -w --ignore-path .gitignore"
Expand All @@ -97,5 +97,6 @@
"@types/vscode": "1.75.0",
"prettier": "3.3.2",
"typescript": "5.5.2"
}
},
"packageManager": "[email protected]"
}
Loading

0 comments on commit a50b071

Please sign in to comment.