Auto update manifest version (#1724)

* Update manifest to auto-fill the version based on most recent git tag

* Install git in the CI pipeline
This commit is contained in:
toasted-nutbread 2021-05-31 14:20:40 -04:00 committed by GitHub
parent 983cdd2339
commit e637408b4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 21 additions and 3 deletions

View File

@ -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

View File

@ -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": {
@ -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",

View File

@ -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": {