Skip to content

Commit

Permalink
use yarn in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
SamiSuleiman committed Dec 21, 2023
1 parent 3d3cdd3 commit aa5013b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ jobs:
- name: node
uses: actions/setup-node@v2
with:
node-version: 16
node-version: 20
registry-url: https://registry.npmjs.org
- run: npm run install:all
- run: npm run build:webview
- run: yarn install:all
- run: yarn build:webview
- run: npm install -g @vscode/vsce
- name: publish
run: npm run deploy
run: yarn deploy
env:
VSCE_USER: ${{secrets.VSCE_USER}}
VSCE_PAT: ${{ secrets.VSCE_PAT }}
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@
]
},
"scripts": {
"install:all": "npm install && cd webview-ui && npm install",
"start:webview": "cd webview-ui && npm run start",
"build:webview": "cd webview-ui && npm run build",
"vscode:prepublish": "npm run compile",
"install:all": "yarn && cd webview-ui && yarn",
"start:webview": "cd webview-ui && yarn start",
"build:webview": "cd webview-ui && yarn build",
"vscode:prepublish": "yarn compile",
"compile": "tsc -p ./",
"deploy": "vsce publish",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"pretest": "yarn compile && yarn lint",
"lint": "eslint src --ext ts"
},
"devDependencies": {
Expand Down

0 comments on commit aa5013b

Please sign in to comment.