chore: Update Workflows

[skip ci]
This commit is contained in:
Rajarshee Chatterjee
2024-07-14 18:07:57 +05:30
parent 49298030be
commit 6d50f7a516
3 changed files with 7 additions and 7 deletions
+5 -5
View File
@@ -1,4 +1,4 @@
name: Host Plugins name: Publish Plugins
on: on:
push: push:
@@ -6,7 +6,7 @@ on:
- master - master
jobs: jobs:
host: Publish:
if: github.repository == 'LNReader/lnreader-plugins' if: github.repository == 'LNReader/lnreader-plugins'
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
@@ -15,11 +15,11 @@ jobs:
token: ${{ secrets.REPO_SCOPED_TOKEN }} token: ${{ secrets.REPO_SCOPED_TOKEN }}
- uses: actions/setup-node@v3 - uses: actions/setup-node@v3
with: with:
node-version: "18" node-version: '18'
- name: Install dependencies - name: Install Dependencies
run: npm install run: npm install
- name: Host plugins - name: Publish Plugins
run: | run: |
git config user.name "github-actions[bot]" git config user.name "github-actions[bot]"
git config user.email 41898282+github-actions[bot]@users.noreply.github.com git config user.email 41898282+github-actions[bot]@users.noreply.github.com
+1 -1
View File
@@ -23,7 +23,7 @@ npm run generate
npx tsc -m node16 npx tsc -m node16
npm run json npm run json
git add -f public/static .dist .js/src/plugins total.svg git add -f public/static .dist .js/src/plugins total.svg
git commit -m "Host plugins" git commit -m "chore: Publish Plugins"
git push -f origin $dist git push -f origin $dist
git checkout -f $current git checkout -f $current
+1 -1
View File
@@ -23,7 +23,7 @@ npm run generate
npx tsc -m node16 npx tsc -m node16
npm run json npm run json
git add -f public/static .dist .js/src/plugins total.svg git add -f public/static .dist .js/src/plugins total.svg
git commit -m "Host plugins" git commit -m "chore: Publish Plugins"
git push -f origin $dist git push -f origin $dist
git checkout -f $current git checkout -f $current