Skip to content
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

build: defined release flows with 'release-it' #147

Open
wants to merge 4 commits into
base: daily
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/daily.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Daily PR

on:
pull_request:
branches:
- "daily"


jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: "16"
cache: "yarn"
cache-dependency-path: yarn.lock

- name: install dependencies
run: yarn

- name: build
run: yarn build

- name: test
run: yarn test

- name: Dry Release
run: yarn release:dry --ci --version
69 changes: 69 additions & 0 deletions .release-it.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
/* eslint-disable no-template-curly-in-string */

const conventionalCommitTypes = [
// MINOR
{ type: 'feat', release: 'minor', section: 'Features' },
{ type: 'feature', release: 'minor', section: 'Features' },
// PATCH
{ type: 'fix', release: 'patch', section: 'Fixes' },
{ type: 'refactor', release: 'patch', section: 'Fixes' },
{ type: 'chore', release: 'patch', section: 'Fixes' },
{ type: 'ci', release: 'patch', section: 'Fixes' },
{ type: 'test', release: 'patch', section: 'Fixes' },
{ type: 'bugfix', release: 'patch', section: 'Fixes' },
{ type: 'hotfix', release: 'patch', section: 'Fixes' },
{ type: 'perf', release: 'patch', section: 'Fixes' },
{ type: 'improvement', release: 'patch', section: 'Fixes' },
{ type: 'revert', release: 'patch', section: 'Fixes' },
{ type: 'style', release: 'patch', section: 'Fixes' },
{ type: 'docs', release: 'patch', section: 'Docs' },
// NO RELEASE
{ type: 'ci', release: false },
{ type: 'build', release: false },
{ type: 'release', release: false },
{ scope: 'no-release', release: false },
];

module.exports = {
hooks: {
'before:init': ['yarn test'],
'after:init': [],
'after:bump': [],
},
git: {
requireUpstream: false,
requireCommits: false,
requireCleanWorkingDir: false,
commitMessage: 'release: ${version} CHANGELOG [skip ci]',
pushArgs: ['--follow-tags', '--no-verify'],
},
github: {
release: false,
assets: [],
},
npm: {
publish: false,
ignoreVersion: false,
},
plugins: {
'@release-it/conventional-changelog': {
infile: 'CHANGELOG.md',
preset: {
name: 'conventionalcommits',
types: conventionalCommitTypes,
},
// not really useful until this PR is merged
// https://github.com/conventional-changelog/conventional-changelog/pull/908
// writerOpts: {
// groupBy: 'scope',
// },
},
'@release-it-plugins/workspaces': {
publish: true,
skipChecks: true,
},
'@release-it/bumper': {
out: 'VERSION',
},
},
};
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/meow-npm-3.7.0-5653cc98af-65a412e5d0.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/qs-npm-6.5.2-dbf9d8386b-24af7b9928.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
1 change: 1 addition & 0 deletions VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2.0.0
15 changes: 12 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,17 @@
"website"
],
"devDependencies": {
"@commitlint/cli": "^12.0.0",
"@commitlint/config-conventional": "^12.0.0",
"@commitlint/cli": "^17.5.1",
"@commitlint/config-conventional": "^17.4.4",
"@release-it-plugins/workspaces": "^3.2.0",
"@release-it/bumper": "^4.0.2",
"@release-it/conventional-changelog": "^5.1.1",
"@types/jest": "^29.5.0",
"dts-jest": "^26.0.0",
"husky": "^8.0.3",
"jest": "^29.5.0",
"lerna": "^4.0.0",
"release-it": "^15.10.1",
"ts-jest": "^29.1.0",
"typescript": "^4.9.5"
},
Expand All @@ -28,7 +32,12 @@
"npm-publish": "lerna run npm-publish",
"postversion": "lerna run postversion",
"npm-publish-beta": "lerna run npm-publish-beta",
"test": "lerna run test"
"test": "lerna run test",
"release:dry": "release-it --dry-run --no-npm",
"release:info": "release-it --release-version",
"release:beta:no-npm": "release-it --preRelease=beta --no-npm",
"release:beta": "release-it --preRelease=beta",
"release:no-npm": "release-it --no-npm"
},
"dependencies": {
"fp-ts": "^2.13.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/ts-endpoint-browser/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ts-endpoint-browser",
"version": "2.0.1-alpha.0",
"version": "2.0.0",
"description": "Adds typesafe endpoints to your browser.",
"main": "index.js",
"repository": "https://github.com/fes300/ts-endpoint/tree/master/packages/ts-endpoint-browser",
Expand Down
2 changes: 1 addition & 1 deletion packages/ts-endpoint-express/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ts-endpoint-express",
"version": "2.0.1-alpha.1",
"version": "2.0.0",
"description": "Adds typesafe endpoints to your express app.",
"main": "index.js",
"repository": "https://github.com/fes300/ts-endpoint/tree/master/packages/ts-endpoint-express",
Expand Down
2 changes: 1 addition & 1 deletion packages/ts-endpoint/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ts-endpoint",
"version": "2.0.1-alpha.0",
"version": "2.0.0",
"description": "Simple endpoint definition for fullstack safety.",
"main": "index.js",
"repository": "https://github.com/fes300/ts-endpoint/tree/master/packages/ts-endpoint",
Expand Down
Loading