Skip to content

Commit

Permalink
Use npm install rather than cloning the entire Joplin GitHub repo
Browse files Browse the repository at this point in the history
  • Loading branch information
personalizedrefrigerator committed Jul 15, 2024
1 parent 3083624 commit 63eac4b
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/update-repo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Build Joplin Website
on:
schedule:
- cron: "0 */6 * * *"
workflow_dispatch:
jobs:
PluginRepo:
runs-on: ubuntu-latest
steps:
- name: Checkout Joplin plugin repository
uses: actions/checkout@v4
with:
ref: master
path: 'plugins'

- name: Install Node
uses: actions/setup-node@v4
with:
node-version: '20'

- name: Set up NPM
run: |
# Allow installing packages globally
mkdir ~/.npm-global
npm config set prefix '~/.npm-global'
- name: Prepare git
shell: bash
# Makes the commit author be shown as GitHub Actions in the
# GitHub UI.
# See https://github.com/actions/checkout/pull/1707
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
- name: Build
shell: bash
# See https://github.com/actions/checkout/pull/1707
run: |
export PATH=~/.npm-global/bin:$PATH
npm i --global @joplin/plugin-repo-cli
cd plugins
plugin-repo-cli build .

0 comments on commit 63eac4b

Please sign in to comment.