Skip to content

Commit a419d0c

Browse files
committed
build and test in CI
1 parent 063630a commit a419d0c

File tree

3 files changed

+44
-2
lines changed

3 files changed

+44
-2
lines changed

.github/workflows/release.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: release
2+
on:
3+
push:
4+
tags:
5+
- 'v*'
6+
7+
jobs:
8+
release:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v6
12+
with:
13+
path: supernote-joplin
14+
- uses: actions/setup-node@v6
15+
with:
16+
node-version: 20
17+
- name: Check out supernote-typescript
18+
uses: actions/checkout@v6
19+
with:
20+
repository: individual-it/supernote-typescript
21+
path: supernote-typescript
22+
- name: install pnpm
23+
uses: pnpm/action-setup@v4
24+
with:
25+
version: 10
26+
- name: build supernote-typescript
27+
run: |
28+
cd supernote-typescript
29+
pnpm install
30+
npm run build
31+
- name: test
32+
run: |
33+
cd supernote-joplin
34+
npm ci
35+
npm test
36+
- name: build
37+
run: |
38+
cd supernote-joplin
39+
npm run dist
40+
- name: publish
41+
uses: softprops/action-gh-release@v2
42+
with:
43+
files: supernote-joplin/publish/net.individual-it.Supernote.jpl

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"version": "0.0.1",
44
"scripts": {
55
"dist": "webpack --env joplin-plugin-config=buildMain && webpack --env joplin-plugin-config=buildExtraScripts && webpack --env joplin-plugin-config=createArchive",
6-
"prepare": "npm run dist",
76
"updateVersion": "webpack --env joplin-plugin-config=updateVersion",
87
"update": "npm install -g generator-joplin && yo joplin --node-package-manager npm --update --force",
98
"test": "vitest --testTimeout=15000",

0 commit comments

Comments
 (0)