Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: rebuild development scripts and release workflow #84

Merged
merged 29 commits into from
Dec 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
de0e5b4
refactor: add dev server and fix `update-beta.json` bug
northword Dec 10, 2023
a8e55d4
chore: add renovate config
northword Dec 10, 2023
3f7df65
feat: release plugin to GitHub release via action
northword Dec 10, 2023
60696cd
chore: update vsc settings
northword Dec 10, 2023
7f6199d
Cancel release by action
northword Dec 10, 2023
567dcc7
docs: update readme
northword Dec 10, 2023
f1f1d7e
Update README.md
northword Dec 10, 2023
63470e8
Update README.md
northword Dec 10, 2023
9d265bc
Update README.md
northword Dec 10, 2023
a80aae6
Update README.md
northword Dec 10, 2023
5cd4042
tweak
northword Dec 11, 2023
3e6eab8
Merge #81
northword Dec 11, 2023
25a9931
Fix indent
northword Dec 11, 2023
d4dae44
Merge https://github.com/windingwind/zotero-plugin-template/commit/ad…
northword Dec 11, 2023
10bb21a
Revent delete env
northword Dec 11, 2023
4554a6e
tweak
northword Dec 11, 2023
9d7954c
feat: release via GitHub action
northword Dec 11, 2023
ca0f4e0
docs: update readme
northword Dec 11, 2023
2f3f2ef
Update README.md
northword Dec 11, 2023
ae14cbd
style: fix prettier
northword Dec 11, 2023
9df4fb5
add: stdout log to file
windingwind Dec 11, 2023
b4c4d0b
Update README.md
northword Dec 11, 2023
377aa6e
Update release.yml
northword Dec 11, 2023
7409363
write Zotero log to `logs/zotero.log`
northword Dec 12, 2023
a2d3530
do not provide update-beta.json default
northword Dec 12, 2023
7c70ccb
fix prettier in readme
northword Dec 12, 2023
198c376
tweak
northword Dec 12, 2023
85a7ead
fix wrong link in readme
northword Dec 12, 2023
e119bff
Move 3rd package config to package.json
northword Dec 12, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 0 additions & 41 deletions .eslintrc.json

This file was deleted.

21 changes: 21 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended",
":semanticPrefixChore",
":prHourlyLimitNone",
":prConcurrentLimitNone",
":enableVulnerabilityAlerts",
":dependencyDashboard",
"schedule:weekends"
],
"packageRules": [
{
"matchPackageNames": ["zotero-plugin-toolkit", "zotero-types"],
"automerge": true
}
],
"git-submodules": {
"enabled": true
}
}
33 changes: 33 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Release

on:
push:
tags:
- v**

permissions:
contents: write

jobs:
release-it:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GitHub_TOKEN }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 20
# cache: npm

- name: Install deps
run: npm install

- name: Release to GitHub
# if: github.event_name == 'push' && github.ref_type == 'tag' && startsWith(github.ref, 'refs/tags/v')
run: |
npm run release -- --no-increment --no-git --github.release --ci --verbose
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
**/build
build
logs
node_modules
package-lock.json
pnpm-lock.yaml
yarn.lock
zotero-cmd.json
7 changes: 7 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
build
logs
node_modules
package-lock.json
yarn.lock
pnpm-lock.yaml
# zotero-cmd.json
3 changes: 0 additions & 3 deletions .prettierrc

This file was deleted.

14 changes: 0 additions & 14 deletions .release-it.json

This file was deleted.

15 changes: 4 additions & 11 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,16 @@
{
"type": "node",
"request": "launch",
"name": "StartDev",
"name": "Start",
"runtimeExecutable": "npm",
"runtimeArgs": ["run", "start-watch"]
"runtimeArgs": ["run", "start"]
},
{
"type": "node",
"request": "launch",
"name": "Restart",
"name": "Build",
"runtimeExecutable": "npm",
"runtimeArgs": ["run", "restart"]
},
{
"type": "node",
"request": "launch",
"name": "Restart in Prod Mode",
"runtimeExecutable": "npm",
"runtimeArgs": ["run", "restart-prod"]
"runtimeArgs": ["run", "build"]
}
]
}
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"editor.formatOnType": false,
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
"source.fixAll.eslint": "explicit"
}
}
Loading