Skip to content

Commit

Permalink
fix: Fix Github workflow about corepack
Browse files Browse the repository at this point in the history
  • Loading branch information
hangxingliu committed Jan 1, 2025
1 parent e52fcdd commit 5f23ff5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@ name: build-artifact
on:
push:
branches:
- master
- main
pull_request:
branches:
- master
- main
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand All @@ -17,7 +15,7 @@ jobs:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
- name: Install
run: yarn install
run: corepack enable && yarn install
- name: Test
run: yarn test && yarn build:ts && yarn build:syntax
- name: Lint
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/vsce-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Install and build
run: yarn install && yarn run build
run: corepack enable && yarn install yarn run build
- name: Publish VS Code extension
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}
Expand Down
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,10 @@
}
]
},
"vsce": {
"dependencies": false,
"yarn": false
},
"devDependencies": {
"@swc/cli": "^0.5.2",
"@swc/core": "^1.10.4",
Expand Down

0 comments on commit 5f23ff5

Please sign in to comment.