mirror of
https://github.com/oven-sh/setup-bun.git
synced 2025-07-21 14:08:24 +02:00
feat: support packageManager in package.json (#27)
This commit is contained in:
parent
bd26ebd2c7
commit
6be87460e3
5 changed files with 181 additions and 128 deletions
18
.github/workflows/action.yml
vendored
18
.github/workflows/action.yml
vendored
|
@ -34,3 +34,21 @@ jobs:
|
|||
name: Verify Bun
|
||||
run: |
|
||||
bun --version
|
||||
setup-bun-from-package-json-version:
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
os:
|
||||
- ubuntu-latest
|
||||
- macos-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
- name: Setup package.json
|
||||
run: |
|
||||
echo "$(jq '. += {"packageManager": "bun@1.0.0"}' package.json)" > package.json
|
||||
- name: Setup Bun
|
||||
uses: ./
|
||||
- name: Verify Bun
|
||||
run: |
|
||||
bun --version
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue