mirror of
https://github.com/oven-sh/bun
synced 2026-02-14 12:51:54 +00:00
fix(bun-release): support windows in npm package (#9873)
* fix npm install on windows * try again * again * copy less file * revert changes * remove package.json from git * okay * now?
This commit is contained in:
44
.github/workflows/bun-release-test.yml
vendored
Normal file
44
.github/workflows/bun-release-test.yml
vendored
Normal file
@@ -0,0 +1,44 @@
|
||||
# This workflow tests bun-release's code and the packages to ensure that npm,
|
||||
# yarn, and pnpm can install bun on all platforms. This does not test that bun
|
||||
# itself works as it hardcodes 1.1.0 as the version to package.
|
||||
name: bun-release-test
|
||||
concurrency: release-test
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
paths:
|
||||
- "packages/bun-release/**"
|
||||
- ".github/workflows/bun-release-test.yml"
|
||||
|
||||
jobs:
|
||||
test-release-script:
|
||||
name: Test Release Script
|
||||
strategy:
|
||||
matrix:
|
||||
machine: [namespace-profile-bun-linux-x64, linux-arm64, macos-arm64, macos-12-large, windows-latest]
|
||||
fail-fast: false
|
||||
runs-on: ${{ matrix.machine }}
|
||||
permissions:
|
||||
contents: read
|
||||
defaults:
|
||||
run:
|
||||
working-directory: packages/bun-release
|
||||
timeout-minutes: 5
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Setup Bun
|
||||
uses: oven-sh/setup-bun@v1
|
||||
with:
|
||||
bun-version: "1.1.0"
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20
|
||||
- name: Install Dependencies
|
||||
run: bun install && npm i -g pnpm yarn npm
|
||||
|
||||
- name: Release
|
||||
run: bun upload-npm -- 1.1.0 test
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
Reference in New Issue
Block a user