generated from windingwind/zotero-plugin-template
-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #66 from ChenglongMa/dev-since-3.0.1
Release v3.0.3
- Loading branch information
Showing
44 changed files
with
13,463 additions
and
631 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,29 @@ | ||
# Usage: | ||
# Copy this file as `.env` and fill in the variables below as instructed. | ||
|
||
# If you are developing more than one plugin, you can store the bin path and | ||
# profile path in the system environment variables, which can be omitted here. | ||
|
||
# The path of the Zotero binary file. | ||
# The path delimiter should be escaped as `\\` for win32. | ||
# The path is `*/Zotero.app/Contents/MacOS/zotero` for MacOS. | ||
ZOTERO_PLUGIN_ZOTERO_BIN_PATH = /path/to/zotero.exe | ||
|
||
# The path of the profile used for development. | ||
# Start the profile manager by `/path/to/zotero.exe -p` to create a profile for development. | ||
# @see https://www.zotero.org/support/kb/profile_directory | ||
ZOTERO_PLUGIN_PROFILE_PATH = /path/to/profile | ||
|
||
# The directory where the database is located. | ||
# If this field is kept empty, Zotero will start with the default data. | ||
# @see https://www.zotero.org/support/zotero_data | ||
ZOTERO_PLUGIN_DATA_DIR = | ||
|
||
# Custom commands to kill Zotero processes. | ||
# Commands for different platforms are already built into zotero-plugin, | ||
# if the built-in commands are not suitable for your needs, please modify this variable. | ||
# ZOTERO_PLUGIN_KILL_COMMAND = | ||
|
||
# GitHub Token | ||
# For release-it auto create release and upload assets | ||
# GITHUB_TOKEN = |
This file was deleted.
Oops, something went wrong.
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,28 @@ | ||
{ | ||
"$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
"extends": [ | ||
"config:recommended", | ||
":semanticPrefixChore", | ||
":prHourlyLimitNone", | ||
":prConcurrentLimitNone", | ||
":enableVulnerabilityAlerts", | ||
":dependencyDashboard", | ||
"group:allNonMajor", | ||
"schedule:weekly" | ||
], | ||
"labels": ["dependencies"], | ||
"packageRules": [ | ||
{ | ||
"matchPackageNames": [ | ||
"zotero-plugin-toolkit", | ||
"zotero-types", | ||
"zotero-plugin-scaffold" | ||
], | ||
"schedule": ["at any time"], | ||
"automerge": true | ||
} | ||
], | ||
"git-submodules": { | ||
"enabled": true | ||
} | ||
} |
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,53 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- v** | ||
|
||
permissions: | ||
contents: write | ||
issues: write | ||
pull-requests: write | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GitHub_TOKEN }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
|
||
- name: Install deps | ||
run: npm install | ||
|
||
- name: Build | ||
run: | | ||
npm run build | ||
- name: Release to GitHub | ||
run: | | ||
npm run release | ||
# cp build/update.json update.json | ||
# cp build/update-beta.json update-beta.json | ||
# git add update.json | ||
# git add update-beta.json | ||
# git commit -m 'chore(publish): synchronizing `update.json`' | ||
# git push | ||
sleep 1s | ||
- name: Notify release | ||
uses: apexskier/github-release-commenter@v1 | ||
continue-on-error: true | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
comment-template: | | ||
:rocket: _This ticket has been resolved in {release_tag}. See {release_link} for release notes._ |
This file was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
.vscode | ||
build | ||
logs | ||
node_modules | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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
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,32 @@ | ||
// @ts-check Let TS check this config file | ||
|
||
import eslint from "@eslint/js"; | ||
import tseslint from "typescript-eslint"; | ||
|
||
export default tseslint.config( | ||
{ | ||
ignores: ["build/**", "dist/**", "node_modules/**", "scripts/"], | ||
}, | ||
{ | ||
extends: [eslint.configs.recommended, ...tseslint.configs.recommended], | ||
rules: { | ||
"@typescript-eslint/ban-ts-comment": [ | ||
"warn", | ||
{ | ||
"ts-expect-error": "allow-with-description", | ||
"ts-ignore": "allow-with-description", | ||
"ts-nocheck": "allow-with-description", | ||
"ts-check": "allow-with-description", | ||
}, | ||
], | ||
"@typescript-eslint/no-unused-vars": "off", | ||
"@typescript-eslint/no-explicit-any": [ | ||
"off", | ||
{ | ||
ignoreRestArgs: true, | ||
}, | ||
], | ||
"@typescript-eslint/no-non-null-assertion": "off", | ||
}, | ||
}, | ||
); |
Oops, something went wrong.