Skip to content

Commit

Permalink
chore: init changeset
Browse files Browse the repository at this point in the history
  • Loading branch information
stijnvanhulle committed Nov 23, 2023
1 parent 05f4a23 commit ca345b0
Show file tree
Hide file tree
Showing 5 changed files with 865 additions and 77 deletions.
8 changes: 8 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
19 changes: 19 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": true,
"fixed": [],
"linked": [],
"access": "restricted",
"baseBranch": "beta",
"updateInternalDependencies": "patch",
"___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH": {
"onlyUpdatePeerDependentsWhenOutOfRange": true
},
"ignore": [
"kubb",
"kubb-docs",
"e2e",
"*-pet-store"
]
}
51 changes: 37 additions & 14 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: release-please
name: release
on:
push:
branches: ['main', 'alpha', 'beta', 'rc']
Expand All @@ -10,19 +10,42 @@ on:
workflow_dispatch:


permissions:
contents: write
pull-requests: write
concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
release-please:
runs-on: ubuntu-latest
steps:
- name: Release
uses: google-github-actions/release-please-action@v3
with:
command: manifest-pr
release-type: node
monorepo-tags: true
default-branch: beta
release:
name: Release
timeout-minutes: 15
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
with:
fetch-depth: 2

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

- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'pnpm'
registry-url: 'https://registry.npmjs.org'

- name: Install bun
uses: oven-sh/setup-bun@v1

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

- uses: dtinth/setup-github-actions-caching-for-turbo@v1
with:
# Set the prefix for the cache keys.
cache-prefix: kubb_

- name: Create Release Pull Request
uses: changesets/action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,20 @@
"lint:ci": "ESLINT_USE_FLAT_CONFIG=true eslint --max-warnings 10 --format pretty ./packages/*",
"lint:fix": "ESLINT_USE_FLAT_CONFIG=true eslint --fix --format pretty ./packages/* && bun run lint:case",
"lint:turbo": "turbo run lint",
"release": "turbo run release --filter=./packages/* --continue",
"release:canary": "turbo run release:canary --filter=./packages/* --continue",
"release": "changeset version && changeset publish",
"release:canary": "changeset version --snapshot && changeset publis",
"start": "turbo run start --filter=./packages/*",
"test": "vitest run --config ./configs/vitest.config.ts --coverage",
"test:bun": "bun test --preload ./configs/setup.ts",
"test:vitest": "vitest run --config ./configs/vitest.config.ts",
"test:watch": "vitest --config ./configs/vitest.config.ts",
"typecheck": "turbo run typecheck --continue --filter='./packages/*'",
"typecheck:examples": "turbo run typecheck --continue --filter='./examples/*'",
"upgrade": "npx taze -r -w --exclude pnpm"
"upgrade": "npx taze -r -w --exclude pnpm",
"changeset": "changeset"
},
"devDependencies": {
"@changesets/cli": "^2.26.2",
"@kubb/eslint-config": "workspace:*",
"@kubb/ts-config": "workspace:*",
"@types/node": "^20.9.4",
Expand Down
Loading

0 comments on commit ca345b0

Please sign in to comment.