Skip to content

Commit

Permalink
ci: update workflow (#563)
Browse files Browse the repository at this point in the history
  • Loading branch information
stijnvanhulle committed Oct 27, 2023
1 parent ba0b363 commit 9d4d72a
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 128 deletions.
37 changes: 0 additions & 37 deletions .github/workflows/bench.yaml

This file was deleted.

23 changes: 13 additions & 10 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
name: ci

on:
workflow_dispatch:
inputs:
tag:
description: override release tag
required: false
push:
branches: ['main', 'alpha', 'beta', 'rc']
paths:
- 'packages/**'
branches:
- main
- 'releases/**'

workflow_dispatch:

jobs:
build:
Expand Down Expand Up @@ -61,22 +62,24 @@ jobs:
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

- name: Release
id: release
- name: Publish
id: publish
continue-on-error: true
if: ${{ success() && github.ref == 'refs/heads/main' && (github.event_name != 'pull_request' || github.event.action == 'closed' && github.event.pull_request.merged == true) }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
TAG: ${{ inputs.tag }}
run: bun run release --concurrency=1

- name: Release canary
- name: Publish ${{ inputs.tag }}
continue-on-error: true
if: steps.release.outcome == 'failure'
if: steps.publish.outcome == 'failure'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
TAG: canary
run: |
bun run release:canary --concurrency=1
bun run release:${{ inputs.tag || 'canary' }} --concurrency=1
59 changes: 0 additions & 59 deletions .github/workflows/create-version.yaml

This file was deleted.

22 changes: 13 additions & 9 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: e2e

on:
pull_request:
paths-ignore:
- "docs/**"
- "examples/**"
- "**/*.md"
workflow_dispatch:
# inputs:
# os:
Expand All @@ -12,7 +16,7 @@ on:
# - ubuntu-latest
# - macos-latest
# - windows-latest

jobs:
build:
name: Build and Test
Expand All @@ -31,7 +35,7 @@ jobs:
- os: ubuntu-latest
node-version: 18
installer: pnpm run
include:
include:
- os: windows-latest
node-version: 18
installer: pnpm run
Expand All @@ -40,7 +44,7 @@ jobs:
installer: bun run

## comment out for support of node 19,20
# include:
# include:

# - os: windows-latest
# installer: pnpm run
Expand All @@ -63,30 +67,30 @@ jobs:
# node-version: 20
# installer: bun run
# experimental: true

runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.experimental || false }}

steps:
- name: Check out code
uses: actions/checkout@v4
with:
fetch-depth: 2

- uses: pnpm/[email protected]
with:
version: 8

- name: Setup Node.js(${{ matrix.node-version }}) environment
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
registry-url: 'https://registry.npmjs.org'

- name: Install dependencies
run: pnpm install --prefer-offline

- name: Install bun
if: ${{ matrix.os == 'ubuntu-latest' }}
uses: oven-sh/setup-bun@v1
Expand Down
14 changes: 4 additions & 10 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,10 @@ name: pr

on:
pull_request:
workflow_dispatch:
# inputs:
# os:
# description: Choose os
# required: true
# type: choice
# options:
# - ubuntu-latest
# - macos-latest
# - windows-latest
paths-ignore:
- "docs/**"
- "examples/**"
- "**/*.md"

jobs:
build:
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,18 @@ on:
push:
branches:
- main

paths-ignore:
- "docs/**"
- "examples/**"
- "**/*.md"

workflow_dispatch:


permissions:
contents: write
pull-requests: write

jobs:
release-please:
runs-on: ubuntu-latest
Expand All @@ -20,4 +24,4 @@ jobs:
if: ${{ github.ref == 'refs/heads/main' }}
with:
command: manifest
monorepo-tags: true
monorepo-tags: true

1 comment on commit 9d4d72a

@vercel
Copy link

@vercel vercel bot commented on 9d4d72a Oct 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

kubb – ./

kubb.dev
kubb-git-main-kubb.vercel.app
kubb-kubb.vercel.app
www.kubb.dev

Please sign in to comment.