fix: Small Fixes to Novel Updates (#1987) #42
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Publish Plugins | |
| on: | |
| push: | |
| branches: | |
| - master | |
| paths: | |
| - 'plugins/**' | |
| - 'public/**' | |
| - 'scripts/publish-plugins.sh' | |
| - '.github/workflows/publish-plugins.yml' | |
| concurrency: | |
| group: ${{ github.workflow }} | |
| cancel-in-progress: true | |
| jobs: | |
| publish: | |
| name: Publish Plugins | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| with: | |
| token: ${{ secrets.REPO_SCOPED_TOKEN }} | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| - name: Install Dependencies | |
| run: npm install --omit=dev --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' | |
| run: npm run publish:plugins -- --all-branches | |
| shell: bash |