Skip to content
This repository has been archived by the owner on Feb 25, 2023. It is now read-only.

Commit

Permalink
Auto update manifest version (#1724)
Browse files Browse the repository at this point in the history
* Update manifest to auto-fill the version based on most recent git tag

* Install git in the CI pipeline
  • Loading branch information
toasted-nutbread authored May 31, 2021
1 parent 983cdd2 commit e637408
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: '12.x'
- name: Set up git
run: |
sudo apt-get install -y git
git --version
git fetch origin $(git branch --show-current) --unshallow --tags > /dev/null 2> /dev/null
git status
git describe
- name: Install dependencies
run: npm ci
- name: Lint
Expand Down
15 changes: 13 additions & 2 deletions dev/data/manifest-variants.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest": {
"manifest_version": 2,
"name": "Yomichan",
"version": "21.4.30.1",
"version": "0.0.0.0",
"description": "Japanese dictionary with Anki integration",
"author": "Alex Yatskov",
"icons": {
Expand Down Expand Up @@ -120,7 +120,18 @@
"variants": [
{
"name": "base",
"buildable": false
"buildable": false,
"modifications": [
{
"action": "set",
"path": ["version"],
"command": {
"command": "git",
"args": ["describe", "--abbrev=0"],
"trim": true
}
}
]
},
{
"name": "chrome",
Expand Down
2 changes: 1 addition & 1 deletion ext/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "Yomichan",
"version": "21.4.30.1",
"version": "21.4.30.0",
"description": "Japanese dictionary with Anki integration",
"author": "Alex Yatskov",
"icons": {
Expand Down

0 comments on commit e637408

Please sign in to comment.