mirror of
https://github.com/lenalebt/obsidian-pocketbook-cloud-highlight-importer.git
synced 2026-07-22 07:40:24 +00:00
version bump to 0.1.6
This commit is contained in:
parent
589125ae8b
commit
ea424c5ad1
5 changed files with 23 additions and 9 deletions
16
.github/workflows/release.yml
vendored
16
.github/workflows/release.yml
vendored
|
|
@ -11,6 +11,7 @@ env:
|
|||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
permissions: write-all
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
|
@ -25,10 +26,11 @@ jobs:
|
|||
npm install
|
||||
npm run build
|
||||
mkdir ${{ env.PLUGIN_NAME }}
|
||||
cp main.js manifest.json ${{ env.PLUGIN_NAME }}
|
||||
cp build/main.js ${{ env.PLUGIN_NAME }}
|
||||
cp manifest.json ${{ env.PLUGIN_NAME }}
|
||||
zip -r ${{ env.PLUGIN_NAME }}.zip ${{ env.PLUGIN_NAME }}
|
||||
ls
|
||||
echo "::set-output name=tag_name::$(git tag --sort version:refname | tail -n 1)"
|
||||
echo "name=tag_name::$(git tag --sort version:refname | tail -n 1)" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Create Release
|
||||
id: create_release
|
||||
|
|
@ -39,7 +41,7 @@ jobs:
|
|||
with:
|
||||
tag_name: ${{ github.ref }}
|
||||
release_name: ${{ github.ref }}
|
||||
draft: false
|
||||
draft: true
|
||||
prerelease: false
|
||||
|
||||
- name: Upload zip file
|
||||
|
|
@ -60,7 +62,7 @@ jobs:
|
|||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||
asset_path: ./main.js
|
||||
asset_path: build/main.js
|
||||
asset_name: main.js
|
||||
asset_content_type: text/javascript
|
||||
|
||||
|
|
@ -74,3 +76,9 @@ jobs:
|
|||
asset_path: ./manifest.json
|
||||
asset_name: manifest.json
|
||||
asset_content_type: application/json
|
||||
|
||||
- uses: eregon/publish-release@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
release_id: ${{ steps.create_release.outputs.id }}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"id": "pocketbook-cloud-highlight-importer",
|
||||
"name": "Pocketbook Cloud Highlight Importer",
|
||||
"version": "0.1.5",
|
||||
"version": "0.1.6",
|
||||
"minAppVersion": "1.1.16",
|
||||
"description": "Imports notes and highlights from your Pocketbook Cloud account.",
|
||||
"author": "Lena Brüder",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "pocketbook-cloud-highlight-importer",
|
||||
"version": "0.1.5",
|
||||
"version": "0.1.6",
|
||||
"description": "Pocketbook Cloud Highlight Importer",
|
||||
"main": "main.js",
|
||||
"scripts": {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
# cd to git root https://stackoverflow.com/a/38843585
|
||||
r=$(git rev-parse --git-dir) && r=$(cd "$r" && pwd)/ && cd "${r%%/.git/*}"
|
||||
|
||||
|
|
@ -22,10 +24,10 @@ echo -n "next version: "
|
|||
read nextVersion
|
||||
|
||||
# set version number in `manifest.json`
|
||||
sed -E -i '' "s/\"version\".*/\"version\": \"$nextVersion\",/" "manifest.json"
|
||||
sed -E -i -e "s/\"version\".*/\"version\": \"$nextVersion\",/" "manifest.json"
|
||||
|
||||
# set version number in `package.json`
|
||||
sed -E -i '' "s/\"version\".*/\"version\": \"$nextVersion\",/" "package.json"
|
||||
sed -E -i -e "s/^ \"version\".*/ \"version\": \"$nextVersion\",/" "package.json"
|
||||
|
||||
# add version number in `versions.json`, assuming same compatibility
|
||||
cat "versions.json" | egrep -v "^$" | grep -v "}" | sed -e '$ d' > temp
|
||||
|
|
@ -35,6 +37,9 @@ echo " \"$nextVersion\": \"$minObsidianVersion\"" >> temp
|
|||
echo "}" >> temp
|
||||
mv temp versions.json
|
||||
|
||||
echo "It's time to pause and check. All ready? Press ENTER to continue."
|
||||
read
|
||||
|
||||
# push the manifest and versions JSONs
|
||||
git add -A
|
||||
git commit -m "version bump to $nextVersion"
|
||||
|
|
|
|||
|
|
@ -3,5 +3,6 @@
|
|||
"0.1.2": "1.1.16",
|
||||
"0.1.3": "1.1.16",
|
||||
"0.1.4": "1.1.16",
|
||||
"0.1.5": "1.1.16"
|
||||
"0.1.5": "1.1.16",
|
||||
"0.1.6": "1.1.16"
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue