PR: add bump ver check (#2282)

* Add bump-version check into the PR validation workflow

* Check condition for PR

* Setup step and job outputs for conditionals

* Fixup

* Limit fetch depth

* Fix typo

* Use a different checkout pattern

* Bump version

* Fixup conditional for the build stage

* Still allow the build stage even if the bump_version_check stage did found changes, as commits by github actions bot won't triggger actions

---------

Co-authored-by: GitHub Actions <actions@github.com>
This commit is contained in:
Belleve 2024-04-07 13:09:16 -10:00 committed by GitHub
parent e866ee9e43
commit af8f360e0e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
20 changed files with 224 additions and 173 deletions

View file

@ -3,10 +3,61 @@ name: PR Font Build Validation
on: [pull_request]
jobs:
bump_version_check:
name: Bump version check
if: github.repository == 'be5invis/Iosevka' && github.base_ref == 'dev'
runs-on: ubuntu-latest
outputs:
changed: ${{ steps.check_changes.outputs.changed }}
steps:
- name: Checkout PR
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Bump version
run: |
npm install
npm run bump-ver
- id: check_changes
name: Check changes
run: |
git config core.autocrlf false
if git diff --quiet; then
echo "changed=0" >> "$GITHUB_OUTPUT"
else
echo "changed=1" >> "$GITHUB_OUTPUT"
fi
- name: Commit to PR
if: steps.check_changes.outputs.changed == '1'
run: |
git config --local user.email "actions@github.com"
git config --local user.name "GitHub Actions"
git add --all
git commit -m "Bump version"
git push
- name: Add PR comment
uses: mshick/add-pr-comment@v2
if : steps.check_changes.outputs.changed == '1'
with:
message: |
Your pull request changes the version number.
A commit has been made to bump the version number.
build:
name: Build ${{ matrix.fontName }} font
needs: bump_version_check
if: github.repository == 'be5invis/Iosevka'
runs-on: ubuntu-latest
strategy:

View file

@ -1,6 +1,6 @@
* Fix leaning marks of turned capital F/L (#2137).
* Fix overlay bar placement of Z with Hook and Z with Swash Tail (#2141).
* Fix attachment of descender parts of Cyrillic Lower Ha/X under `x` = `cursive` (#2142).
* Make the Eng part in LATIN SMALL LETTER FENG DIGRAPH always connected to the f part (#2143).
* Fix top bar shape in CYRILLIC CAPITAL LETTER DJE (#2145).
* Fix leaning marks placement for reversed k/F/P (#2150).
* Fix leaning marks of turned capital F/L (#2137).
* Fix overlay bar placement of Z with Hook and Z with Swash Tail (#2141).
* Fix attachment of descender parts of Cyrillic Lower Ha/X under `x` = `cursive` (#2142).
* Make the Eng part in LATIN SMALL LETTER FENG DIGRAPH always connected to the f part (#2143).
* Fix top bar shape in CYRILLIC CAPITAL LETTER DJE (#2145).
* Fix leaning marks placement for reversed k/F/P (#2150).

View file

@ -1,4 +1,4 @@
* Fix incorrect serif shape for motion-serifed `m` under semi-proportional subfamilies.
* Add cursive variant for `x` and `z` (#852).
* Slab will now use more cursive variants for `k`, `x` and `z`.
* Fix incorrect serif shape for motion-serifed `m` under semi-proportional subfamilies.
* Add cursive variant for `x` and `z` (#852).
* Slab will now use more cursive variants for `k`, `x` and `z`.
* `ss15` and `ss17` are updated to use latest cursive variants (#852).

View file

@ -1,36 +1,36 @@
# Backers Archive
This is an archive of former backers that sponsored Iosevkas development during 0.x2.x period. Iosevka will continue evolving, and thank you for your support.
## Generous Backers
- Cheng-Wei Chien
- Tianyu Ge
- (Anonymous User 4362976)
- Delton Ding
- Codi Matters
- Vasily Shmelev
## Backers
- Danny O'Brien
- Yanjia Huang
- Leon Breedt
- Alexander Payne
- Marek Kubica
- Yoshito Komatsu
- Dylan Sinnott
- robertgzr
- Pavlos Vinieratos
- Matthew Piziak
- Winnie Quinn
- Clemens
- Pascal
- Kevin Sidarous
- Beni Cherniavsky-Paskin
- Bartłomiej T. Listwon
- Will Binns-Smith
- Jeff S
- Jeri Mason
- Michael L. Ward
- Freetasy
# Backers Archive
This is an archive of former backers that sponsored Iosevkas development during 0.x2.x period. Iosevka will continue evolving, and thank you for your support.
## Generous Backers
- Cheng-Wei Chien
- Tianyu Ge
- (Anonymous User 4362976)
- Delton Ding
- Codi Matters
- Vasily Shmelev
## Backers
- Danny O'Brien
- Yanjia Huang
- Leon Breedt
- Alexander Payne
- Marek Kubica
- Yoshito Komatsu
- Dylan Sinnott
- robertgzr
- Pavlos Vinieratos
- Matthew Piziak
- Winnie Quinn
- Clemens
- Pascal
- Kevin Sidarous
- Beni Cherniavsky-Paskin
- Bartłomiej T. Listwon
- Will Binns-Smith
- Jeff S
- Jeri Mason
- Michael L. Ward
- Freetasy

View file

@ -1,48 +1,48 @@
## Make docker image
```
git clone --depth=1 https://github.com/be5invis/Iosevka.git $HOME/mkdkimg
cd $HOME/mkdkimg/docker
docker build -t=fontcc .
docker images | grep fontcc # Confirm that the docker image is generated successfully
fontcc latest c847d5e08886 About a minute ago 491MB
cd ../..
rm -rf mkdkimg/
```
Note: Make docker image need execute only one time.
## Usage
`docker run -it --rm -v $PWD:/work fontcc <BUILD_ARGS>`
Please refer to the `<BUILD_ARGS>` parameters to [Customized Build](../../dev/doc/custom-build.md#customized-build)
### Optional parameters (put them before `fontcc`):
1. `-e "VERSION_TAG=<tag>"`
`<tag>` can be the following values
- `main` git main branch
- `dev` git dev branch
- `v28.0.5` git [release version tags](../../../tags)
When this variable is omitted, the tag of the latest release will be selected
2. `-e "NPM_REG=<npm repository mirror url>"`
change `npm install` download repository to mirror site.
eg. change npm repos to huawei mirror
`docker run -it --rm -v $PWD:/work -e "NPM_REG=https://mirrors.huaweicloud.com/repository/npm" fontcc contents::Iosevka`
## Example
### Partially Build dev branch
```
mkdir -p $HOME/build_fonts
cd $HOME/build_fonts
docker run -it --rm -v $PWD:/work -e "VERSION_TAG=dev" fontcc contents::IosevkaSS06 ttf::IosevkaSS12 webfont::IosevkaSS15
ls -lR dist/
```
### Customized Build
```
cd $HOME/mycustomfonts
cat myfont1.toml myfont2.toml myfont3.toml > private-build-plans.toml
docker run -it --rm -v $PWD:/work fontcc ttf::myfont1 ttf::myfont2 contents::myfont3
ls -lR dist/
```
Note: You need prepare myfont1.toml myfont2.toml myfont3.toml youself, The [Customizer](https://be5invis.github.io/Iosevka/customizer) can help you easily generate font configuration file `.toml`.
## Make docker image
```
git clone --depth=1 https://github.com/be5invis/Iosevka.git $HOME/mkdkimg
cd $HOME/mkdkimg/docker
docker build -t=fontcc .
docker images | grep fontcc # Confirm that the docker image is generated successfully
fontcc latest c847d5e08886 About a minute ago 491MB
cd ../..
rm -rf mkdkimg/
```
Note: Make docker image need execute only one time.
## Usage
`docker run -it --rm -v $PWD:/work fontcc <BUILD_ARGS>`
Please refer to the `<BUILD_ARGS>` parameters to [Customized Build](../../dev/doc/custom-build.md#customized-build)
### Optional parameters (put them before `fontcc`):
1. `-e "VERSION_TAG=<tag>"`
`<tag>` can be the following values
- `main` git main branch
- `dev` git dev branch
- `v28.0.5` git [release version tags](../../../tags)
When this variable is omitted, the tag of the latest release will be selected
2. `-e "NPM_REG=<npm repository mirror url>"`
change `npm install` download repository to mirror site.
eg. change npm repos to huawei mirror
`docker run -it --rm -v $PWD:/work -e "NPM_REG=https://mirrors.huaweicloud.com/repository/npm" fontcc contents::Iosevka`
## Example
### Partially Build dev branch
```
mkdir -p $HOME/build_fonts
cd $HOME/build_fonts
docker run -it --rm -v $PWD:/work -e "VERSION_TAG=dev" fontcc contents::IosevkaSS06 ttf::IosevkaSS12 webfont::IosevkaSS15
ls -lR dist/
```
### Customized Build
```
cd $HOME/mycustomfonts
cat myfont1.toml myfont2.toml myfont3.toml > private-build-plans.toml
docker run -it --rm -v $PWD:/work fontcc ttf::myfont1 ttf::myfont2 contents::myfont3
ls -lR dist/
```
Note: You need prepare myfont1.toml myfont2.toml myfont3.toml youself, The [Customizer](https://be5invis.github.io/Iosevka/customizer) can help you easily generate font configuration file `.toml`.

80
package-lock.json generated
View file

@ -1,12 +1,12 @@
{
"name": "@iosevka/monorepo",
"version": "29.1.0",
"version": "29.1.1",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@iosevka/monorepo",
"version": "29.1.0",
"version": "29.1.1",
"workspaces": [
"packages/*",
"tools/*"
@ -4310,16 +4310,16 @@
},
"packages/font": {
"name": "@iosevka/font",
"version": "29.1.0",
"version": "29.1.1",
"dependencies": {
"@iarna/toml": "^2.2.5",
"@iosevka/font-glyphs": "29.1.0",
"@iosevka/font-otl": "29.1.0",
"@iosevka/geometry": "29.1.0",
"@iosevka/geometry-cache": "29.1.0",
"@iosevka/glyph": "29.1.0",
"@iosevka/param": "29.1.0",
"@iosevka/util": "29.1.0",
"@iosevka/font-glyphs": "29.1.1",
"@iosevka/font-otl": "29.1.1",
"@iosevka/geometry": "29.1.1",
"@iosevka/geometry-cache": "29.1.1",
"@iosevka/glyph": "29.1.1",
"@iosevka/param": "29.1.1",
"@iosevka/util": "29.1.1",
"harfbuzzjs": "^0.3.4",
"ot-builder": "^1.7.3",
"semver": "^7.6.0"
@ -4327,100 +4327,100 @@
},
"packages/font-glyphs": {
"name": "@iosevka/font-glyphs",
"version": "29.1.0",
"version": "29.1.1",
"dependencies": {
"@iosevka/font-kits": "29.1.0",
"@iosevka/geometry": "29.1.0",
"@iosevka/geometry-cache": "29.1.0",
"@iosevka/glyph": "29.1.0",
"@iosevka/util": "29.1.0",
"@iosevka/font-kits": "29.1.1",
"@iosevka/geometry": "29.1.1",
"@iosevka/geometry-cache": "29.1.1",
"@iosevka/glyph": "29.1.1",
"@iosevka/util": "29.1.1",
"typo-geom": "^0.15.1"
}
},
"packages/font-kits": {
"name": "@iosevka/font-kits",
"version": "29.1.0",
"version": "29.1.1",
"dependencies": {
"@iosevka/geometry": "29.1.0",
"@iosevka/glyph": "29.1.0",
"@iosevka/util": "29.1.0"
"@iosevka/geometry": "29.1.1",
"@iosevka/glyph": "29.1.1",
"@iosevka/util": "29.1.1"
}
},
"packages/font-otl": {
"name": "@iosevka/font-otl",
"version": "29.1.0",
"version": "29.1.1",
"dependencies": {
"@iosevka/font-glyphs": "29.1.0",
"@iosevka/glyph": "29.1.0",
"@iosevka/font-glyphs": "29.1.1",
"@iosevka/glyph": "29.1.1",
"toposort": "^2.0.2"
}
},
"packages/geometry": {
"name": "@iosevka/geometry",
"version": "29.1.0",
"version": "29.1.1",
"dependencies": {
"@iosevka/util": "29.1.0",
"@iosevka/util": "29.1.1",
"spiro": "^3.0.1",
"typo-geom": "^0.15.1"
}
},
"packages/geometry-cache": {
"name": "@iosevka/geometry-cache",
"version": "29.1.0",
"version": "29.1.1",
"dependencies": {
"@iosevka/geometry": "29.1.0",
"@iosevka/geometry": "29.1.1",
"@msgpack/msgpack": "^2.8.0"
}
},
"packages/glyph": {
"name": "@iosevka/glyph",
"version": "29.1.0",
"version": "29.1.1",
"dependencies": {
"@iosevka/geometry": "29.1.0"
"@iosevka/geometry": "29.1.1"
}
},
"packages/param": {
"name": "@iosevka/param",
"version": "29.1.0",
"version": "29.1.1",
"dependencies": {
"@iosevka/util": "29.1.0"
"@iosevka/util": "29.1.1"
}
},
"packages/util": {
"name": "@iosevka/util",
"version": "29.1.0"
"version": "29.1.1"
},
"tools/amend-readme": {
"name": "@iosevka/amend-readme",
"version": "29.1.0",
"version": "29.1.1",
"dependencies": {
"@iarna/toml": "^2.2.5",
"@iosevka/param": "29.1.0",
"@iosevka/param": "29.1.1",
"@unicode/unicode-15.1.0": "^1.5.2"
}
},
"tools/data-export": {
"name": "@iosevka/data-export",
"version": "29.1.0",
"version": "29.1.1",
"dependencies": {
"@iarna/toml": "^2.2.5",
"@iosevka/param": "29.1.0",
"@iosevka/param": "29.1.1",
"@unicode/unicode-15.1.0": "^1.5.2",
"cldr": "^7.5.0"
}
},
"tools/generate-samples": {
"name": "@iosevka/generate-samples",
"version": "29.1.0",
"version": "29.1.1",
"dependencies": {
"@iosevka/data-export": "29.1.0"
"@iosevka/data-export": "29.1.1"
}
},
"tools/misc": {
"name": "@iosevka/misc",
"version": "29.1.0",
"version": "29.1.1",
"dependencies": {
"@iosevka/util": "29.1.0",
"@iosevka/util": "29.1.1",
"semver": "^7.6.0",
"wawoff2": "^2.0.1"
}

View file

@ -1,6 +1,6 @@
{
"name": "@iosevka/monorepo",
"version": "29.1.0",
"version": "29.1.1",
"workspaces": [
"packages/*",
"tools/*"

View file

@ -1,6 +1,6 @@
{
"name": "@iosevka/font-glyphs",
"version": "29.1.0",
"version": "29.1.1",
"private": true,
"exports": {
".": "./src/index.mjs",
@ -8,11 +8,11 @@
"./unicode-knowledge": "./src/meta/unicode-knowledge.mjs"
},
"dependencies": {
"@iosevka/font-kits": "29.1.0",
"@iosevka/geometry": "29.1.0",
"@iosevka/geometry-cache": "29.1.0",
"@iosevka/glyph": "29.1.0",
"@iosevka/util": "29.1.0",
"@iosevka/font-kits": "29.1.1",
"@iosevka/geometry": "29.1.1",
"@iosevka/geometry-cache": "29.1.1",
"@iosevka/glyph": "29.1.1",
"@iosevka/util": "29.1.1",
"typo-geom": "^0.15.1"
}
}

View file

@ -1,14 +1,14 @@
{
"name": "@iosevka/font-kits",
"version": "29.1.0",
"version": "29.1.1",
"private": true,
"exports": {
"./boole-kit": "./src/boole-kit.mjs",
"./spiro-kit": "./src/spiro-kit.mjs"
},
"dependencies": {
"@iosevka/geometry": "29.1.0",
"@iosevka/glyph": "29.1.0",
"@iosevka/util": "29.1.0"
"@iosevka/geometry": "29.1.1",
"@iosevka/glyph": "29.1.1",
"@iosevka/util": "29.1.1"
}
}

View file

@ -1,13 +1,13 @@
{
"name": "@iosevka/font-otl",
"version": "29.1.0",
"version": "29.1.1",
"private": true,
"exports": {
".": "./src/index.mjs"
},
"dependencies": {
"@iosevka/font-glyphs": "29.1.0",
"@iosevka/glyph": "29.1.0",
"@iosevka/font-glyphs": "29.1.1",
"@iosevka/glyph": "29.1.1",
"toposort": "^2.0.2"
}
}

View file

@ -1,6 +1,6 @@
{
"name": "@iosevka/font",
"version": "29.1.0",
"version": "29.1.1",
"private": true,
"exports": {
".": "./src/index.mjs",
@ -10,13 +10,13 @@
},
"dependencies": {
"@iarna/toml": "^2.2.5",
"@iosevka/font-glyphs": "29.1.0",
"@iosevka/font-otl": "29.1.0",
"@iosevka/geometry": "29.1.0",
"@iosevka/geometry-cache": "29.1.0",
"@iosevka/glyph": "29.1.0",
"@iosevka/param": "29.1.0",
"@iosevka/util": "29.1.0",
"@iosevka/font-glyphs": "29.1.1",
"@iosevka/font-otl": "29.1.1",
"@iosevka/geometry": "29.1.1",
"@iosevka/geometry-cache": "29.1.1",
"@iosevka/glyph": "29.1.1",
"@iosevka/param": "29.1.1",
"@iosevka/util": "29.1.1",
"harfbuzzjs": "^0.3.4",
"ot-builder": "^1.7.3",
"semver": "^7.6.0"

View file

@ -1,12 +1,12 @@
{
"name": "@iosevka/geometry-cache",
"version": "29.1.0",
"version": "29.1.1",
"private": true,
"exports": {
".": "./src/index.mjs"
},
"dependencies": {
"@iosevka/geometry": "29.1.0",
"@iosevka/geometry": "29.1.1",
"@msgpack/msgpack": "^2.8.0"
}
}

View file

@ -1,6 +1,6 @@
{
"name": "@iosevka/geometry",
"version": "29.1.0",
"version": "29.1.1",
"private": true,
"exports": {
".": "./src/index.mjs",
@ -13,7 +13,7 @@
"./spiro-control": "./src/spiro-control.mjs"
},
"dependencies": {
"@iosevka/util": "29.1.0",
"@iosevka/util": "29.1.1",
"spiro": "^3.0.1",
"typo-geom": "^0.15.1"
}

View file

@ -1,6 +1,6 @@
{
"name": "@iosevka/glyph",
"version": "29.1.0",
"version": "29.1.1",
"private": true,
"exports": {
".": "./src/glyph.mjs",
@ -9,6 +9,6 @@
"./relation": "./src/relation.mjs"
},
"dependencies": {
"@iosevka/geometry": "29.1.0"
"@iosevka/geometry": "29.1.1"
}
}

View file

@ -1,6 +1,6 @@
{
"name": "@iosevka/param",
"version": "29.1.0",
"version": "29.1.1",
"private": true,
"exports": {
".": "./src/index.mjs",
@ -9,6 +9,6 @@
"./metric-override": "./src/metric-override.mjs"
},
"dependencies": {
"@iosevka/util": "29.1.0"
"@iosevka/util": "29.1.1"
}
}

View file

@ -1,6 +1,6 @@
{
"name": "@iosevka/util",
"version": "29.1.0",
"version": "29.1.1",
"private": true,
"exports": {
".": "./src/index.mjs",

View file

@ -1,13 +1,13 @@
{
"name": "@iosevka/amend-readme",
"version": "29.1.0",
"version": "29.1.1",
"private": true,
"exports": {
".": "./src/index.mjs"
},
"dependencies": {
"@iarna/toml": "^2.2.5",
"@iosevka/param": "29.1.0",
"@iosevka/param": "29.1.1",
"@unicode/unicode-15.1.0": "^1.5.2"
}
}

View file

@ -1,6 +1,6 @@
{
"name": "@iosevka/data-export",
"version": "29.1.0",
"version": "29.1.1",
"private": true,
"exports": {
".": "./src/index.mjs",
@ -10,7 +10,7 @@
},
"dependencies": {
"@iarna/toml": "^2.2.5",
"@iosevka/param": "29.1.0",
"@iosevka/param": "29.1.1",
"@unicode/unicode-15.1.0": "^1.5.2",
"cldr": "^7.5.0"
}

View file

@ -1,11 +1,11 @@
{
"name": "@iosevka/generate-samples",
"version": "29.1.0",
"version": "29.1.1",
"private": true,
"exports": {
".": "./src/index.mjs"
},
"dependencies": {
"@iosevka/data-export": "29.1.0"
"@iosevka/data-export": "29.1.1"
}
}

View file

@ -1,10 +1,10 @@
{
"name": "@iosevka/misc",
"version": "29.1.0",
"version": "29.1.1",
"private": true,
"dependencies": {
"semver": "^7.6.0",
"wawoff2": "^2.0.1",
"@iosevka/util": "29.1.0"
"@iosevka/util": "29.1.1"
}
}