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",