37 lines
972 B
YAML
37 lines
972 B
YAML
name: Publish Plugins
|
|
|
|
on:
|
|
push:
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
Publish:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
token: ${{ secrets.REPO_SCOPED_TOKEN }}
|
|
- uses: actions/setup-node@v3
|
|
with:
|
|
node-version: '20'
|
|
- name: Install Dependencies
|
|
run: npm install --omit=dev --ignore-scripts
|
|
|
|
- name: Setup Git
|
|
run: |
|
|
git config user.name "github-actions[bot]"
|
|
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
|
|
|
|
- if: github.repository == 'LNReader/lnreader-plugins'
|
|
name: Publish Plugins Main Repo
|
|
run: npm run publish:plugins 2>> $GITHUB_STEP_SUMMARY
|
|
shell: bash
|
|
|
|
- if: github.repository != 'LNReader/lnreader-plugins'
|
|
name: Publish Plugins All Branches
|
|
run: npm run publish:plugins -- --all-branches
|
|
shell: bash
|