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:
parent
983cdd2339
commit
e637408b4a
7
.github/workflows/ci.yml
vendored
7
.github/workflows/ci.yml
vendored
@ -13,6 +13,13 @@ jobs:
|
|||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v1
|
||||||
with:
|
with:
|
||||||
node-version: '12.x'
|
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
|
- name: Install dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
- name: Lint
|
- name: Lint
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"manifest": {
|
"manifest": {
|
||||||
"manifest_version": 2,
|
"manifest_version": 2,
|
||||||
"name": "Yomichan",
|
"name": "Yomichan",
|
||||||
"version": "21.4.30.1",
|
"version": "0.0.0.0",
|
||||||
"description": "Japanese dictionary with Anki integration",
|
"description": "Japanese dictionary with Anki integration",
|
||||||
"author": "Alex Yatskov",
|
"author": "Alex Yatskov",
|
||||||
"icons": {
|
"icons": {
|
||||||
@ -120,7 +120,18 @@
|
|||||||
"variants": [
|
"variants": [
|
||||||
{
|
{
|
||||||
"name": "base",
|
"name": "base",
|
||||||
"buildable": false
|
"buildable": false,
|
||||||
|
"modifications": [
|
||||||
|
{
|
||||||
|
"action": "set",
|
||||||
|
"path": ["version"],
|
||||||
|
"command": {
|
||||||
|
"command": "git",
|
||||||
|
"args": ["describe", "--abbrev=0"],
|
||||||
|
"trim": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "chrome",
|
"name": "chrome",
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"manifest_version": 2,
|
"manifest_version": 2,
|
||||||
"name": "Yomichan",
|
"name": "Yomichan",
|
||||||
"version": "21.4.30.1",
|
"version": "21.4.30.0",
|
||||||
"description": "Japanese dictionary with Anki integration",
|
"description": "Japanese dictionary with Anki integration",
|
||||||
"author": "Alex Yatskov",
|
"author": "Alex Yatskov",
|
||||||
"icons": {
|
"icons": {
|
||||||
|
Loading…
Reference in New Issue
Block a user