Skip to content

Commit

Permalink
use yarn in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshalX committed Nov 12, 2024
1 parent 134738d commit 026ea7a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/lint_build_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,21 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'yarn'

- name: Install dependencies
run: |
npm install
npm install -g @vscode/vsce ovsx
yarn ci
yarn global add @vscode/vsce ovsx
- name: Code Linting
run: npm run lint
run: yarn lint

- name: Build extension
run: vsce package

- name: Upload extension package to artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: cycode-extension
path: "*.vsix"
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,9 @@
"watch": "webpack --watch",
"compile": "webpack",
"package": "webpack --mode production",
"vscode:prepublish": "yarn run package"
"vscode:prepublish": "yarn run package",
"preci": "rm -rf node_modules",
"ci": "yarn install --frozen-lockfile"
},
"devDependencies": {
"@eslint/js": "^9.12.0",
Expand Down

0 comments on commit 026ea7a

Please sign in to comment.