From 026ea7a2dc3c46f0461852b767efdb98d47b6e80 Mon Sep 17 00:00:00 2001 From: Ilya Siamionau Date: Tue, 12 Nov 2024 12:46:25 +0100 Subject: [PATCH] use yarn in ci --- .github/workflows/lint_build_publish.yml | 9 +++++---- package.json | 4 +++- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/lint_build_publish.yml b/.github/workflows/lint_build_publish.yml index 0e4f799..017de1c 100644 --- a/.github/workflows/lint_build_publish.yml +++ b/.github/workflows/lint_build_publish.yml @@ -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" diff --git a/package.json b/package.json index 38ca2ed..74304da 100644 --- a/package.json +++ b/package.json @@ -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",