-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use npm install rather than cloning the entire Joplin GitHub repo
- Loading branch information
1 parent
3083624
commit 63eac4b
Showing
1 changed file
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
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 . |