Skip to content

Commit

Permalink
setup-bun for actions
Browse files Browse the repository at this point in the history
  • Loading branch information
jarvisjiang committed May 4, 2024
1 parent 3bcd528 commit bc168d4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/npm-publish-github-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 16
node-version: 20
- uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- run: npm ci
- run: npm test

Expand All @@ -28,7 +31,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 16
node-version: 20
registry-url: https://npm.pkg.github.com/
- run: npm ci
- run: npm publish
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 16
node-version: 20
- uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- run: npm ci
- run: npm test

Expand All @@ -25,7 +28,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 16
node-version: 20
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm publish
Expand Down

0 comments on commit bc168d4

Please sign in to comment.