Skip to content

Commit 0942082

Browse files
authored
Merge pull request #41 from code-hike/improve-release-log
Better release log
2 parents a662785 + 9047dc9 commit 0942082

File tree

17 files changed

+47
-55
lines changed

17 files changed

+47
-55
lines changed

.github/workflows/release.yml

+1-6
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@ name: Release
22

33
on:
44
push:
5-
pull_request:
6-
types: [opened, labeled]
7-
branches:
8-
- main
9-
- next
105

116
jobs:
127
release:
@@ -36,6 +31,6 @@ jobs:
3631
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3732
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
3833
run: |
39-
yarn install --frozen-lockfile
34+
yarn install --frozen-lockfile 2>&1 | grep -v '^[warning|info]'
4035
yarn build
4136
yarn release

packages/classer/package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
{
22
"name": "@code-hike/classer",
33
"version": "0.3.0-next.0",
4-
"main": "dist/index.js",
4+
"main": "dist/index.cjs.js",
55
"typings": "dist/index.d.ts",
66
"module": "dist/index.esm.js",
77
"files": [
88
"dist"
99
],
1010
"scripts": {
11-
"publish-canary": "yarn publish --tag canary --access public",
1211
"x": "x"
1312
},
1413
"devDependencies": {

packages/code-diff/package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
{
22
"name": "@code-hike/code-diff",
33
"version": "0.3.0-next.0",
4-
"main": "dist/index.js",
4+
"main": "dist/index.cjs.js",
55
"typings": "dist/index.d.ts",
66
"module": "dist/index.esm.js",
77
"files": [
88
"dist"
99
],
1010
"scripts": {
11-
"publish-canary": "yarn publish --tag canary --access public",
1211
"x": "x",
1312
"test": "jest",
1413
"test-watch": "jest --watch --updateSnapshot"

packages/mini-browser/package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@code-hike/mini-browser",
33
"version": "0.3.0-next.0",
4-
"main": "dist/index.js",
4+
"main": "dist/index.cjs.js",
55
"typings": "dist/index.d.ts",
66
"module": "dist/index.esm.js",
77
"style": "dist/index.css",
@@ -10,7 +10,6 @@
1010
],
1111
"scripts": {
1212
"x": "x",
13-
"publish-canary": "yarn publish --tag canary --access public",
1413
"test": "jest",
1514
"test-watch": "jest --watch --updateSnapshot"
1615
},

packages/mini-editor/package.json

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
{
22
"name": "@code-hike/mini-editor",
33
"version": "0.3.0-next.0",
4-
"main": "dist/index.js",
4+
"main": "dist/index.cjs.js",
55
"typings": "dist/index.d.ts",
66
"module": "dist/index.esm.js",
77
"style": "dist/index.css",
88
"files": [
99
"dist"
1010
],
1111
"scripts": {
12-
"x": "x",
13-
"publish-canary": "yarn publish --tag canary --access public"
12+
"x": "x"
1413
},
1514
"devDependencies": {
1615
"@code-hike/script": "0.0.1",

packages/mini-frame/package.json

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
{
22
"name": "@code-hike/mini-frame",
33
"version": "0.3.0-next.0",
4-
"main": "dist/index.js",
4+
"main": "dist/index.cjs.js",
55
"typings": "dist/index.d.ts",
66
"module": "dist/index.esm.js",
77
"style": "dist/index.css",
88
"files": [
99
"dist"
1010
],
1111
"scripts": {
12-
"x": "x",
13-
"publish-canary": "yarn publish --tag canary --access public"
12+
"x": "x"
1413
},
1514
"devDependencies": {
1615
"@code-hike/script": "0.0.1",

packages/mini-terminal/package.json

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
{
22
"name": "@code-hike/mini-terminal",
33
"version": "0.3.0-next.0",
4-
"main": "dist/index.js",
4+
"main": "dist/index.cjs.js",
55
"typings": "dist/index.d.ts",
66
"module": "dist/index.esm.js",
77
"files": [
88
"dist"
99
],
1010
"scripts": {
11-
"x": "x",
12-
"publish-canary": "yarn publish --tag canary --access public"
11+
"x": "x"
1312
},
1413
"devDependencies": {
1514
"@code-hike/script": "0.0.1",

packages/player/package.json

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
{
22
"name": "@code-hike/player",
33
"version": "0.3.0-next.0",
4-
"main": "dist/index.js",
4+
"main": "dist/index.cjs.js",
55
"typings": "dist/index.d.ts",
66
"module": "dist/index.esm.js",
77
"files": [
88
"dist"
99
],
1010
"scripts": {
11-
"x": "x",
12-
"publish-canary": "yarn publish --tag canary --access public"
11+
"x": "x"
1312
},
1413
"devDependencies": {
1514
"@code-hike/script": "0.0.1",

packages/script/build.js

+8-4
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,14 @@ function build(args) {
99
"rollup.config.js"
1010
)
1111

12-
spawn("yarn", ["rollup", "-c", configPath, ...args], {
13-
stdio: "inherit",
14-
// cwd: "foo"
15-
})
12+
spawn(
13+
"yarn",
14+
["rollup", "--silent", "-c", configPath, ...args],
15+
{
16+
stdio: "inherit",
17+
// cwd: "foo"
18+
}
19+
)
1620
}
1721

1822
module.exports = {

packages/script/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"cssnano": "^4.1.10",
1111
"edit-json-file": "^1.5.0",
1212
"node-sass": "^5.0.0",
13-
"rollup": "^2.17.0",
13+
"rollup": "^2.41.2",
1414
"rollup-plugin-copy": "^3.3.0",
1515
"rollup-plugin-postcss": "^4.0.0",
1616
"rollup-plugin-scss": "^2.6.1",

packages/script/rollup.config.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -20,21 +20,21 @@ const plugins = [
2020
const createConfig = filename => ({
2121
input: `src/${filename}.tsx`,
2222
output: [
23-
{
24-
file: `./dist/${filename}.js`,
25-
format: "umd",
26-
name: "ch", //todo get by parameter
27-
},
23+
// {
24+
// file: `./dist/${filename}.js`,
25+
// format: "umd",
26+
// name: "ch", //todo get by parameter
27+
// },
2828
{
2929
file: `./dist/${filename}.cjs.js`,
3030
format: "cjs",
31-
name: "ch", //todo get by parameter
3231
},
3332
{
3433
file: `./dist/${filename}.esm.js`,
3534
format: "es",
3635
},
3736
],
37+
// external: ["react"],
3838
plugins,
3939
})
4040

packages/scroller/package.json

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
{
22
"name": "@code-hike/scroller",
33
"version": "0.3.0-next.0",
4-
"main": "dist/index.js",
4+
"main": "dist/index.cjs.js",
55
"typings": "dist/index.d.ts",
66
"module": "dist/index.esm.js",
77
"files": [
88
"dist"
99
],
1010
"scripts": {
11-
"x": "x",
12-
"publish-canary": "yarn publish --tag canary --access public"
11+
"x": "x"
1312
},
1413
"devDependencies": {
1514
"@code-hike/script": "0.0.1",

packages/scrollycoding/package.json

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
{
22
"name": "@code-hike/scrollycoding",
33
"version": "0.3.0-next.0",
4-
"main": "dist/index.js",
4+
"main": "dist/index.cjs.js",
55
"typings": "dist/index.d.ts",
66
"module": "dist/index.esm.js",
77
"style": "dist/index.css",
88
"files": [
99
"dist"
1010
],
1111
"scripts": {
12-
"x": "x",
13-
"publish-canary": "yarn publish --tag canary --access public"
12+
"x": "x"
1413
},
1514
"devDependencies": {
1615
"@code-hike/script": "0.0.1",

packages/sim-user/package.json

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
{
22
"name": "@code-hike/sim-user",
33
"version": "0.3.0-next.0",
4-
"main": "dist/index.js",
4+
"main": "dist/index.cjs.js",
55
"typings": "dist/index.d.ts",
66
"module": "dist/index.esm.js",
77
"files": [
88
"dist"
99
],
1010
"scripts": {
11-
"x": "x",
12-
"publish-canary": "yarn publish --tag canary --access public"
11+
"x": "x"
1312
},
1413
"devDependencies": {
1514
"@code-hike/script": "0.0.1"

packages/smooth-column/package.json

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
{
22
"name": "@code-hike/smooth-column",
33
"version": "0.3.0-next.0",
4-
"main": "dist/index.js",
4+
"main": "dist/index.cjs.js",
55
"typings": "dist/index.d.ts",
66
"module": "dist/index.esm.js",
77
"files": [
88
"dist"
99
],
1010
"scripts": {
11-
"x": "x",
12-
"publish-canary": "yarn publish --tag canary --access public"
11+
"x": "x"
1312
},
1413
"devDependencies": {
1514
"@code-hike/script": "0.0.1",

packages/smooth-lines/package.json

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
{
22
"name": "@code-hike/smooth-lines",
33
"version": "0.3.0-next.0",
4-
"main": "dist/index.js",
4+
"main": "dist/index.cjs.js",
55
"typings": "dist/index.d.ts",
66
"module": "dist/index.esm.js",
77
"files": [
88
"dist"
99
],
1010
"scripts": {
11-
"x": "x",
12-
"publish-canary": "yarn publish --tag canary --access public"
11+
"x": "x"
1312
},
1413
"devDependencies": {
1514
"@code-hike/script": "0.0.1",

yarn.lock

+10-5
Original file line numberDiff line numberDiff line change
@@ -9046,6 +9046,11 @@ fsevents@~2.1.2:
90469046
resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.1.3.tgz#fb738703ae8d2f9fe900c33836ddebee8b97f23e"
90479047
integrity sha512-Auw9a4AxqWpa9GUfj370BMPzzyncfBABW8Mab7BGWBYDj4Isgq+cDKtx0i6u9jcX9pQDnswsaaOTgTmA5pEjuQ==
90489048

9049+
fsevents@~2.3.1:
9050+
version "2.3.2"
9051+
resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.2.tgz#8a526f78b8fdf4623b709e0b975c52c24c02fd1a"
9052+
integrity sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==
9053+
90499054
fstream@^1.0.0, fstream@^1.0.12:
90509055
version "1.0.12"
90519056
resolved "https://registry.yarnpkg.com/fstream/-/fstream-1.0.12.tgz#4e8ba8ee2d48be4f7d0de505455548eae5932045"
@@ -16063,12 +16068,12 @@ rollup-pluginutils@2, rollup-pluginutils@^2.8.2:
1606316068
dependencies:
1606416069
estree-walker "^0.6.1"
1606516070

16066-
rollup@^2.17.0:
16067-
version "2.33.1"
16068-
resolved "https://registry.yarnpkg.com/rollup/-/rollup-2.33.1.tgz#802795164164ee63cd47769d8879c33ec8ae0c40"
16069-
integrity sha512-uY4O/IoL9oNW8MMcbA5hcOaz6tZTMIh7qJHx/tzIJm+n1wLoY38BLn6fuy7DhR57oNFLMbDQtDeJoFURt5933w==
16071+
rollup@^2.41.2:
16072+
version "2.41.4"
16073+
resolved "https://registry.yarnpkg.com/rollup/-/rollup-2.41.4.tgz#2a674d64db4322482d440699acb060dc6dd9e65f"
16074+
integrity sha512-f9IHfMO8p2Y8OdisI7Oj3oKkPuaQ6cgSwYqAi0TDvP3w2p+oX1VejX/w28a1h8WTnrapzfO5d4Uqhww+gL0b0g==
1607016075
optionalDependencies:
16071-
fsevents "~2.1.2"
16076+
fsevents "~2.3.1"
1607216077

1607316078
rss@^1.2.2:
1607416079
version "1.2.2"

0 commit comments

Comments
 (0)