switch to bun
This commit is contained in:
		
							parent
							
								
									f0a614d4f0
								
							
						
					
					
						commit
						bef75b8a8a
					
				
					 4 changed files with 12 additions and 5540 deletions
				
			
		| 
						 | 
				
			
			@ -13,27 +13,29 @@ jobs:
 | 
			
		|||
      - name: Checkout
 | 
			
		||||
        uses: actions/checkout@v4
 | 
			
		||||
 | 
			
		||||
      - name: Setup pnpm
 | 
			
		||||
        run: |
 | 
			
		||||
          corepack install
 | 
			
		||||
          pnpm config set store-dir /tmp/pnpm-store
 | 
			
		||||
      - name: Setup Bun
 | 
			
		||||
        uses: oven-sh/setup-bun@v2
 | 
			
		||||
        with:
 | 
			
		||||
          bun-version-file: 'package.json'
 | 
			
		||||
 | 
			
		||||
      - name: Cache Dependencies
 | 
			
		||||
        id: dependencies-cache
 | 
			
		||||
        uses: actions/cache@v4
 | 
			
		||||
        with:
 | 
			
		||||
          path: /tmp/pnpm-store
 | 
			
		||||
          key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
 | 
			
		||||
          path: ~/.bun/install/cache
 | 
			
		||||
          key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lockb') }}
 | 
			
		||||
          restore-keys: |
 | 
			
		||||
            ${{ runner.os }}-bun-
 | 
			
		||||
 | 
			
		||||
      - name: Install Dependencies
 | 
			
		||||
        run: pnpm i
 | 
			
		||||
        run: bun install
 | 
			
		||||
 | 
			
		||||
      - name: Build Dist (Staging)
 | 
			
		||||
        run: pnpm dist -m staging
 | 
			
		||||
        run: bun dist -m staging
 | 
			
		||||
        if: env.GITHUB_REF_NAME == 'master'
 | 
			
		||||
 | 
			
		||||
      - name: Build Dist
 | 
			
		||||
        run: pnpm dist
 | 
			
		||||
        run: bun dist
 | 
			
		||||
        if: env.GITHUB_REF_NAME != 'master'
 | 
			
		||||
 | 
			
		||||
      - name: Depoly to Preview
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue