Skip to content

Commit

Permalink
fix: use npm as bun has issues
Browse files Browse the repository at this point in the history
  • Loading branch information
sdsdsd2 committed Feb 12, 2024
1 parent 5f84078 commit a6e634f
Show file tree
Hide file tree
Showing 8 changed files with 15,102 additions and 90 deletions.
23 changes: 17 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@ jobs:
fetch-depth: 0
persist-credentials: false

- name: setup bun
uses: oven-sh/setup-bun@v1
- name: setup node
uses: actions/setup-node@v4
with:
node-version: "20.x"

- name: semantic release
id: "semantic-release"
Expand All @@ -47,22 +49,31 @@ jobs:
- name: "print version"
run: echo "New version ${{ steps.semantic-release.outputs.new_release_version }}"

- name: 💎 install cached dependencies
if: steps.semantic-release.outputs.new_release_version != ''
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ secrets.CACHE_VERSION }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: 🚧 install dependencies
if: steps.semantic-release.outputs.new_release_version != ''
run: bun install
run: npm install

- name: 📦 compile and create vsix
if: steps.semantic-release.outputs.new_release_version != ''
run: bun run package
run: npm run package

- name: 📤 upload vsix to ovsx
if: steps.semantic-release.outputs.new_release_version != ''
run: bun run publish:ovsx
run: npm run publish:ovsx
env:
OVSX_PAT: ${{ secrets.OVSX_PAT }}

- name: 🚀 publish to marketplace
if: success() && steps.semantic-release.outputs.new_release_version != ''
run: bun run deploy
run: npm run deploy
env:
VSCE_PAT: ${{ secrets.VS_MARKETPLACE_PAT }}
Binary file removed bun.lockb
Binary file not shown.
Loading

0 comments on commit a6e634f

Please sign in to comment.