Skip to content

Commit

Permalink
Merge pull request #120 from vivliostyle/update-release-flow
Browse files Browse the repository at this point in the history
Update the release flow
  • Loading branch information
spring-raining committed Dec 19, 2023
2 parents da19c8d + c0fc46f commit dd2f4e9
Show file tree
Hide file tree
Showing 17 changed files with 667 additions and 92 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)
5 changes: 5 additions & 0 deletions .changeset/big-schools-try.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@vivliostyle/theme-epub3j': major
---

Release @vivliostyle/them-epub3j
14 changes: 14 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": [
"@changesets/changelog-github",
{ "repo": "vivliostyle/themes" }
],
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
29 changes: 29 additions & 0 deletions .github/workflows/version-or-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Release

on:
push:
branches:
- main

concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20.x
- run: yarn --frozen-lockfile
- run: yarn build
- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
version: yarn bump
publish: yarn release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
8 changes: 0 additions & 8 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,3 @@ We appreciate your donation to the list of our official themes!
- Push to the repository
- Triage issues
- Review and merge pull-requests

## Release process (for Maintainers)

```bash
export GH_TOKEN=<github-token>
yarn up
yarn release
```
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@
"release": "lerna publish from-package",
"test": "lerna run test",
"top": "node -r ts-node/register scripts/top.ts",
"up": "yarn build && yarn lint && lerna version --conventional-commits --create-release github"
"bump": "yarn top && yarn doctoc README.md && changeset version"
},
"dependencies": {
"node-fetch": "^2.6.0"
},
"devDependencies": {
"@changesets/changelog-github": "^0.5.0",
"@changesets/cli": "^2.27.1",
"@types/node-fetch": "^2.5.7",
"@uetchy/doctoc": "^1.5.0",
"esm": "^3.2.25",
Expand Down
13 changes: 5 additions & 8 deletions packages/@vivliostyle/theme-academic/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
# Change Log
# @vivliostyle/theme-academic

All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [1.0.0](https://github.com/vivliostyle/themes/compare/@vivliostyle/[email protected]...@vivliostyle/[email protected]) (2023-08-10)
## [1.0.0](https://github.com/vivliostyle/themes/compare/@vivliostyle/[email protected]...@vivliostyle/[email protected]) (2023-08-10)

**Note:** Version bump only for package @vivliostyle/theme-academic

Expand All @@ -17,7 +14,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline

**Note:** Version bump only for package @vivliostyle/theme-academic

# [0.4.0](https://github.com/vivliostyle/themes/compare/@vivliostyle/[email protected]...@vivliostyle/[email protected]) (2021-11-07)
## [0.4.0](https://github.com/vivliostyle/themes/compare/@vivliostyle/[email protected]...@vivliostyle/[email protected]) (2021-11-07)

### Features

Expand All @@ -27,7 +24,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline

**Note:** Version bump only for package @vivliostyle/theme-academic

# [0.3.0](https://github.com/vivliostyle/themes/compare/@vivliostyle/[email protected]...@vivliostyle/[email protected]) (2021-04-08)
## [0.3.0](https://github.com/vivliostyle/themes/compare/@vivliostyle/[email protected]...@vivliostyle/[email protected]) (2021-04-08)

### Bug Fixes

Expand All @@ -38,7 +35,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline

- **@vivliostyle/theme-academic:** follow create-vivliostyle-theme v0.3.0 ([62fbf4d](https://github.com/vivliostyle/themes/commit/62fbf4d264f3a5ff28088a0da7e4bdac21c28e08))

# [0.2.0](https://github.com/vivliostyle/themes/compare/@vivliostyle/[email protected]...@vivliostyle/[email protected]) (2020-08-28)
## [0.2.0](https://github.com/vivliostyle/themes/compare/@vivliostyle/[email protected]...@vivliostyle/[email protected]) (2020-08-28)

### Features

Expand Down
9 changes: 3 additions & 6 deletions packages/@vivliostyle/theme-base/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
# Change Log
# @vivliostyle/theme-base

All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [1.0.0](https://github.com/vivliostyle/themes/compare/@vivliostyle/[email protected]...@vivliostyle/[email protected]) (2023-08-10)
## [1.0.0](https://github.com/vivliostyle/themes/compare/@vivliostyle/[email protected]...@vivliostyle/[email protected]) (2023-08-10)

### Bug Fixes

Expand All @@ -13,6 +10,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline

- **theme-base:** Update variables of CSS columns ([a75b3a8](https://github.com/vivliostyle/themes/commit/a75b3a8fda8a4bee073163926e0e1d35e23ffc0f))

# 1.0.0-beta.1 (2023-03-18)
## 1.0.0-beta.1 (2023-03-18)

- Release @vivliostyle/them-base
15 changes: 6 additions & 9 deletions packages/@vivliostyle/theme-bunko/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
# Change Log
# @vivliostyle/theme-bunko

All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [1.0.0](https://github.com/vivliostyle/themes/compare/@vivliostyle/[email protected]...@vivliostyle/[email protected]) (2023-08-10)
## [1.0.0](https://github.com/vivliostyle/themes/compare/@vivliostyle/[email protected]...@vivliostyle/[email protected]) (2023-08-10)

**Note:** Version bump only for package @vivliostyle/theme-bunko

Expand All @@ -17,7 +14,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline

**Note:** Version bump only for package @vivliostyle/theme-bunko

# [0.5.0](https://github.com/vivliostyle/themes/compare/@vivliostyle/[email protected]...@vivliostyle/[email protected]) (2021-11-07)
## [0.5.0](https://github.com/vivliostyle/themes/compare/@vivliostyle/[email protected]...@vivliostyle/[email protected]) (2021-11-07)

### Features

Expand All @@ -27,13 +24,13 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline

**Note:** Version bump only for package @vivliostyle/theme-bunko

# [0.4.0](https://github.com/vivliostyle/themes/compare/@vivliostyle/[email protected]...@vivliostyle/[email protected]) (2021-04-08)
## [0.4.0](https://github.com/vivliostyle/themes/compare/@vivliostyle/[email protected]...@vivliostyle/[email protected]) (2021-04-08)

### Features

- **@vivliostyle/theme-bunko:** follow create-vivliostyle-theme v0.3.0 ([da32c2d](https://github.com/vivliostyle/themes/commit/da32c2dc17d3aba44e0a9bf78b4aefee28bcb6b4))

# [0.3.0](https://github.com/vivliostyle/themes/compare/@vivliostyle/[email protected]...@vivliostyle/[email protected]) (2020-08-28)
## [0.3.0](https://github.com/vivliostyle/themes/compare/@vivliostyle/[email protected]...@vivliostyle/[email protected]) (2020-08-28)

### Features

Expand All @@ -49,7 +46,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline

**Note:** Version bump only for package @vivliostyle/theme-bunko

# 0.2.0 (2020-07-01)
## 0.2.0 (2020-07-01)

### Features

Expand Down
4 changes: 2 additions & 2 deletions packages/@vivliostyle/theme-epub3j/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@vivliostyle/theme-epub3j",
"description": "EPUB3 (Japanese) 日本語EPUB用テーマ(電書協EPUB3制作ガイド準拠)",
"version": "1.0.0",
"version": "0.0.0",
"author": "Vivliostyle <[email protected]>",
"scripts": {
"build": "vivliostyle build",
Expand Down Expand Up @@ -42,7 +42,7 @@
"license": "CC0-1.0",
"vivliostyle": {
"theme": {
"name": "Epub",
"name": "EPUB3 (Japanese)",
"style": "./theme.css",
"category": "misc",
"topics": []
Expand Down
9 changes: 3 additions & 6 deletions packages/@vivliostyle/theme-gutenberg/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
# Change Log
# @vivliostyle/theme-gutenberg

All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [1.0.0](https://github.com/vivliostyle/themes/compare/@vivliostyle/[email protected]...@vivliostyle/[email protected]) (2023-08-10)
## [1.0.0](https://github.com/vivliostyle/themes/compare/@vivliostyle/[email protected]...@vivliostyle/[email protected]) (2023-08-10)

**Note:** Version bump only for package @vivliostyle/theme-gutenberg

Expand All @@ -17,7 +14,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline

**Note:** Version bump only for package @vivliostyle/theme-gutenberg

# 0.1.0 (2021-11-07)
## 0.1.0 (2021-11-07)

### Features

Expand Down
15 changes: 6 additions & 9 deletions packages/@vivliostyle/theme-slide/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
# Change Log
# @vivliostyle/theme-slide

All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [1.0.0](https://github.com/vivliostyle/themes/compare/@vivliostyle/[email protected]...@vivliostyle/[email protected]) (2023-08-10)
## [1.0.0](https://github.com/vivliostyle/themes/compare/@vivliostyle/[email protected]...@vivliostyle/[email protected]) (2023-08-10)

**Note:** Version bump only for package @vivliostyle/theme-slide

Expand All @@ -17,7 +14,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline

**Note:** Version bump only for package @vivliostyle/theme-slide

# [0.5.0](https://github.com/vivliostyle/themes/compare/@vivliostyle/[email protected]...@vivliostyle/[email protected]) (2021-11-07)
## [0.5.0](https://github.com/vivliostyle/themes/compare/@vivliostyle/[email protected]...@vivliostyle/[email protected]) (2021-11-07)

### Features

Expand All @@ -27,13 +24,13 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline

**Note:** Version bump only for package @vivliostyle/theme-slide

# [0.4.0](https://github.com/vivliostyle/themes/compare/@vivliostyle/[email protected]...@vivliostyle/[email protected]) (2021-04-08)
## [0.4.0](https://github.com/vivliostyle/themes/compare/@vivliostyle/[email protected]...@vivliostyle/[email protected]) (2021-04-08)

### Features

- **@vivliostyle/theme-slide:** follow create-vivliostyle-theme v0.3.0 ([ab4f2aa](https://github.com/vivliostyle/themes/commit/ab4f2aab46430dcf9bd39cefe9619cc30c673a43))

# [0.3.0](https://github.com/vivliostyle/themes/compare/@vivliostyle/[email protected]...@vivliostyle/[email protected]) (2020-08-28)
## [0.3.0](https://github.com/vivliostyle/themes/compare/@vivliostyle/[email protected]...@vivliostyle/[email protected]) (2020-08-28)

### Features

Expand All @@ -51,7 +48,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline

- **@vivliostyle/theme-slide:** new style ([ae36878](https://github.com/vivliostyle/themes/commit/ae368782fd1cc68dfb1e06344a9ca9588b1f37dd))

# 0.2.0 (2020-07-01)
## 0.2.0 (2020-07-01)

### Features

Expand Down
15 changes: 6 additions & 9 deletions packages/@vivliostyle/theme-techbook/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
# Change Log
# @vivliostyle/theme-techbook

All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [1.0.0](https://github.com/vivliostyle/themes/compare/@vivliostyle/[email protected]...@vivliostyle/[email protected]) (2023-08-10)
## [1.0.0](https://github.com/vivliostyle/themes/compare/@vivliostyle/[email protected]...@vivliostyle/[email protected]) (2023-08-10)

**Note:** Version bump only for package @vivliostyle/theme-techbook

Expand All @@ -17,7 +14,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline

**Note:** Version bump only for package @vivliostyle/theme-techbook

# [0.4.0](https://github.com/vivliostyle/themes/compare/@vivliostyle/[email protected]...@vivliostyle/[email protected]) (2021-11-07)
## [0.4.0](https://github.com/vivliostyle/themes/compare/@vivliostyle/[email protected]...@vivliostyle/[email protected]) (2021-11-07)

### Features

Expand All @@ -27,18 +24,18 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline

**Note:** Version bump only for package @vivliostyle/theme-techbook

# [0.3.0](https://github.com/vivliostyle/themes/compare/@vivliostyle/[email protected]...@vivliostyle/[email protected]) (2021-04-08)
## [0.3.0](https://github.com/vivliostyle/themes/compare/@vivliostyle/[email protected]...@vivliostyle/[email protected]) (2021-04-08)

### Features

- **@vivliostyle/theme-techbook:** follow create-vivliostyle-theme v0.3.0 ([bf2a7c9](https://github.com/vivliostyle/themes/commit/bf2a7c90b4bd315181907d0091a7b118aa22846d))

# [0.2.0](https://github.com/vivliostyle/themes/compare/@vivliostyle/[email protected]...@vivliostyle/[email protected]) (2020-08-28)
## [0.2.0](https://github.com/vivliostyle/themes/compare/@vivliostyle/[email protected]...@vivliostyle/[email protected]) (2020-08-28)

### Features

- include scss and example files to packages ([d9694af](https://github.com/vivliostyle/themes/commit/d9694afea56d95569f707c19106b42ba56c28964))

# 0.1.0 (2020-08-02)
## 0.1.0 (2020-08-02)

- add theme-techbook ([c7d6f6e](https://github.com/vivliostyle/themes/commit/c7d6f6e))
15 changes: 6 additions & 9 deletions packages/create-vivliostyle-theme/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
# Change Log
# create-vivliostyle-theme

All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [1.0.0](https://github.com/vivliostyle/themes/compare/[email protected]@1.0.0) (2023-08-10)
## [1.0.0](https://github.com/vivliostyle/themes/compare/[email protected]@1.0.0) (2023-08-10)

**Note:** Version bump only for package create-vivliostyle-theme

Expand All @@ -17,7 +14,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline

**Note:** Version bump only for package create-vivliostyle-theme

# [0.4.0](https://github.com/vivliostyle/themes/compare/[email protected]@0.4.0) (2021-11-07)
## [0.4.0](https://github.com/vivliostyle/themes/compare/[email protected]@0.4.0) (2021-11-07)

### Features

Expand All @@ -30,15 +27,15 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline

**Note:** Version bump only for package create-vivliostyle-theme

# [0.3.0](https://github.com/vivliostyle/themes/compare/[email protected]@0.3.0) (2021-04-08)
## [0.3.0](https://github.com/vivliostyle/themes/compare/[email protected]@0.3.0) (2021-04-08)

### Features

- create-vivliostyle-theme: use scss by default ([37adfc3](https://github.com/vivliostyle/themes/commit/37adfc3a0ce5b7e6c392e710ca465cfab003c697))
- create-vivliostyle-theme: include vivliostyle.config.js to theme packages ([e560db6](https://github.com/vivliostyle/themes/commit/e560db6a045c8e0503f358cb46e56ffd2f8a65d8))
- create-vivliostyle-theme: set theme_print.css as a default style ([7eb3a49](https://github.com/vivliostyle/themes/commit/7eb3a49f21660c4dcc07e4e535d131e02399742c))

# [0.2.0](https://github.com/vivliostyle/themes/compare/[email protected]@0.2.0) (2020-08-28)
## [0.2.0](https://github.com/vivliostyle/themes/compare/[email protected]@0.2.0) (2020-08-28)

### Features

Expand All @@ -54,7 +51,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline

- omit prefix ([a5fe184](https://github.com/vivliostyle/themes/commit/a5fe1849567eaf1b16f701679d6f15606ab552da))

# 0.1.0 (2020-07-01)
## 0.1.0 (2020-07-01)

### Bug Fixes

Expand Down
Loading

0 comments on commit dd2f4e9

Please sign in to comment.