Skip to content

Commit

Permalink
Remove yarn and update ci actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Cooper committed Jun 4, 2024
1 parent a558ed2 commit 944ca36
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 17 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/build_and_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,19 @@ env:

jobs:
build:
if: github.event.workflow_run.conclusion == 'success'
permissions: write-all
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: "16"
cache: "yarn"
node-version: "18.x"

- name: Install Dependencies
run: yarn install
run: npm install

- name: Extract version number
id: extract_version
Expand Down
14 changes: 8 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,18 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "yarn"
node-version: "18.x"

- name: Install Dependencies
run: yarn install
run: npm install

- name: Install xvfb
run: xvfb-run -a npm test

- name: Run Tests
run: yarn test
run: npm test
1 change: 0 additions & 1 deletion .yarnrc

This file was deleted.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,15 @@
]
},
"scripts": {
"vscode:prepublish": "yarn run package",
"compile": "yarn run check-types && yarn run lint && node esbuild.js",
"vscode:prepublish": "npm run package",
"compile": "npm run check-types && npm run lint && node esbuild.js",
"watch": "npm-run-all -p watch:*",
"watch:esbuild": "node esbuild.js --watch",
"watch:tsc": "tsc --noEmit --watch --project tsconfig.json",
"package": "yarn run check-types && yarn run lint && node esbuild.js --production",
"package": "npm run check-types && npm run lint && node esbuild.js --production",
"compile-tests": "tsc -p . --outDir out",
"watch-tests": "tsc -p . -w --outDir out",
"pretest": "yarn run compile-tests && yarn run compile && yarn run lint",
"pretest": "npm run compile-tests && npm run compile && npm run lint",
"check-types": "tsc --noEmit",
"lint": "eslint src --ext ts",
"test": "vscode-test"
Expand Down

0 comments on commit 944ca36

Please sign in to comment.