Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 12 additions & 14 deletions .github/workflows/publish-plugins.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

name: Publish Plugins

on:
Expand All @@ -11,7 +12,7 @@ on:
- '.github/workflows/publish-plugins.yml'

permissions:
contents: read
contents: write

concurrency:
group: ${{ github.workflow }}
Expand All @@ -23,29 +24,26 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@v4
with:
token: ${{ secrets.REPO_SCOPED_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}
fetch-depth: 0

- name: Fetch All Remote Branches
run: git fetch origin '+refs/heads/*:refs/remotes/origin/*'

- name: Setup Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
uses: actions/setup-node@v4
with:
node-version: '24'

- name: Install Dependencies
run: npm ci --omit=dev --ignore-scripts
run: npm ci --ignore-scripts

- name: Configure Git
run: |
git config user.name "github-actions[bot]"
git config user.email 41898282+github-actions[bot]@users.noreply.github.com

- name: Publish Plugins (Main Repository)
if: github.repository == 'LNReader/lnreader-plugins'
run: npm run publish:plugins 2>> $GITHUB_STEP_SUMMARY
shell: bash

- name: Publish Plugins (Fork - All Branches)
if: github.repository != 'LNReader/lnreader-plugins'
- name: Publish Plugins
run: npm run publish:plugins -- --all-branches
shell: bash
shell: bash
Loading
Loading