-
Notifications
You must be signed in to change notification settings - Fork 0
chore: configure release tooling for @brutils/core #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
c1b9568
a113fc2
5cc699b
de92b80
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| { | ||
| "$schema": "https://unpkg.com/@changesets/config@3/schema.json", | ||
| "changelog": [ | ||
| "@changesets/changelog-github", | ||
| { "repo": "youphenrique/brutils" } | ||
| ], | ||
| "commit": false, | ||
| "fixed": [], | ||
| "linked": [], | ||
| "access": "public", | ||
| "baseBranch": "main", | ||
| "updateInternalDependencies": "patch", | ||
| "ignore": [] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "@brutils/core": major | ||
| --- | ||
|
|
||
| Initial v1.0.0 release with breaking changes from the 0.x API. This is a rewrite of the library in TypeScript with an ESM-only module system. | ||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,32 @@ | ||||||
| name: CI | ||||||
|
|
||||||
| on: | ||||||
| push: | ||||||
| branches: [main] | ||||||
| pull_request: | ||||||
| branches: [main] | ||||||
|
|
||||||
| concurrency: | ||||||
| group: ci-${{ github.ref }} | ||||||
| cancel-in-progress: true | ||||||
|
|
||||||
| jobs: | ||||||
| ci: | ||||||
| runs-on: ubuntu-latest | ||||||
| steps: | ||||||
| - uses: actions/checkout@v4 | ||||||
|
|
||||||
| - uses: pnpm/action-setup@v4 | ||||||
|
|
||||||
| - uses: actions/setup-node@v4 | ||||||
| with: | ||||||
| node-version-file: ".nvmrc" | ||||||
| cache: pnpm | ||||||
|
|
||||||
| - run: pnpm install | ||||||
|
|
||||||
| - run: pnpm lint | ||||||
| - run: pnpm typecheck | ||||||
| - run: pnpm test -- --run | ||||||
|
||||||
| - run: pnpm test -- --run | |
| - run: pnpm test |
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,43 @@ | ||||||||||||
| name: Release | ||||||||||||
|
|
||||||||||||
| on: | ||||||||||||
| push: | ||||||||||||
| tags: | ||||||||||||
| - "v*" | ||||||||||||
|
Comment on lines
+5
to
+6
|
||||||||||||
| tags: | |
| - "v*" | |
| branches: | |
| - main | |
| workflow_dispatch: |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,36 @@ | ||||||
| { | ||||||
| "git": { | ||||||
| "commitMessage": "chore: release @brutils/core v${version}", | ||||||
| "tagName": "v${version}", | ||||||
| "tagAnnotation": "Release @brutils/core v${version}", | ||||||
| "requireCleanWorkingDir": true, | ||||||
| "requireBranch": "main", | ||||||
| "push": true | ||||||
| }, | ||||||
| "npm": false, | ||||||
| "github": { | ||||||
| "release": true, | ||||||
| "releaseName": "v${version}" | ||||||
| }, | ||||||
|
Comment on lines
+2
to
+14
|
||||||
| "plugins": { | ||||||
| "@release-it/conventional-changelog": { | ||||||
| "preset": { | ||||||
| "name": "conventionalcommits", | ||||||
| "types": [ | ||||||
| { "type": "feat", "section": "Features" }, | ||||||
| { "type": "fix", "section": "Bug Fixes" }, | ||||||
| { "type": "perf", "section": "Performance" }, | ||||||
| { "type": "refactor", "section": "Refactors" }, | ||||||
| { "type": "docs", "section": "Documentation" }, | ||||||
| { "type": "test", "hidden": true }, | ||||||
| { "type": "chore", "hidden": true } | ||||||
| ] | ||||||
| }, | ||||||
| "infile": "CHANGELOG.md" | ||||||
| } | ||||||
| }, | ||||||
| "hooks": { | ||||||
| "before:init": ["pnpm lint", "pnpm test -- --run"], | ||||||
|
||||||
| "before:init": ["pnpm lint", "pnpm test -- --run"], | |
| "before:init": ["pnpm lint", "pnpm test"], |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| { | ||
| "$schema": "https://unpkg.com/knip@latest/schema.json", | ||
| "workspaces": { | ||
| ".": { | ||
| "ignoreDependencies": [ | ||
| "@changesets/changelog-github" | ||
| ] | ||
| }, | ||
| "packages/core": { | ||
| "entry": ["src/index.ts"], | ||
| "project": ["src/**/*.ts"], | ||
| "ignore": ["dist/**"] | ||
| } | ||
| } | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This changeset marks
@brutils/corefor a major bump to represent the initial v1 release, butpackages/core/package.jsonalready has version1.0.0. Applying this changeset would bump to2.0.0, which doesn't match the intent of an initial v1.0.0 release. Either remove this changeset, or adjust package versioning so the first Changesets run results in1.0.0(e.g., start from0.xbefore applying a major bump).