Files
lnreader-plugins/host.sh
T
nyagami e0b7d7eccb Fix web ui & optimise publish plugin/prettier actions (#1344)
* fix: display selected plugin

* fix: app bar responsive

* fix: sticky header

* added user-agent tooltip

* fix: responsive pop

* responsivve parsenovel

* chatper list responsive

* update dependecies

* update npm i action

* test

* skip prepare

* add terser to deps

* update tsc command

* remove ts-node

* fix: tsc options

* separate tsconfig for publish plugins

* revert host_plugins.yml

* test only terser & typescipt

* revert github action file

* cheapter prettier action
2024-11-29 15:52:36 +07:00

31 lines
681 B
Bash
Executable File

current=`git rev-parse --abbrev-ref HEAD`
version=`node -e "console.log(require('./package.json').version);"`
dist="plugins/v$version"
exists=`git show-ref refs/heads/$dist`
if [ -n "$exists" ]; then
git branch -D $dist
fi
git checkout --orphan $dist
if [ $? -eq 1 ]; then
# If checkout failed
echo "=========="
echo "Could not checkout branch dist! See the error above and fix it!"
exit 1
fi
git reset
rm -rf .js
npm run clearMultisrc
npm run generate
npx tsc --project tsconfig.production.json
npm run json
git add -f public/static .dist .js/src/plugins total.svg
git commit -m "chore: Publish Plugins"
git push -f origin $dist
git checkout -f $current