Skip to content

Commit fc37325

Browse files
committed
Add workflow
1 parent 58cb51e commit fc37325

File tree

4 files changed

+77
-7
lines changed

4 files changed

+77
-7
lines changed

.github/workflows/alpha.yaml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
name: Test & Deploy v3 alpha
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- v3
8+
pull_request:
9+
branches:
10+
- v3
11+
12+
jobs:
13+
audit:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/setup-node@v4
17+
with:
18+
node-version: current
19+
- uses: actions/checkout@v4
20+
- run: npm audit --omit=dev
21+
22+
lint:
23+
needs: [audit]
24+
runs-on: ubuntu-latest
25+
steps:
26+
- uses: actions/setup-node@v4
27+
with:
28+
node-version: current
29+
- uses: actions/checkout@v4
30+
- run: npm ci
31+
- name: Lint
32+
run: npm run check
33+
34+
test:
35+
needs: [audit]
36+
runs-on: ubuntu-latest
37+
strategy:
38+
matrix:
39+
node-version: ["20", "22", "24"]
40+
steps:
41+
- uses: actions/setup-node@v4
42+
with:
43+
node-version: ${{ matrix.node-version }}
44+
- uses: actions/checkout@v4
45+
- run: npm ci
46+
- name: Test
47+
run: npm test
48+
49+
deploy:
50+
needs: [lint, test]
51+
runs-on: ubuntu-latest
52+
if: github.event_name == 'push'
53+
steps:
54+
- uses: actions/setup-node@v4
55+
with:
56+
node-version: current
57+
- uses: actions/checkout@v4
58+
- run: npm ci
59+
- name: Update @v3-alpha version
60+
run: npm version premajor --no-git-tag-version --preid "alpha.$GITHUB_RUN_NUMBER"
61+
- name: Deploy @v3-alpha version to npm
62+
uses: JS-DevTools/npm-publish@v3
63+
with:
64+
tag: v3-alpha
65+
token: ${{ secrets.NPM_TOKEN }}
66+
check-version: false

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "easymde",
3-
"version": "3.0.0",
3+
"version": "2.0.0",
44
"type": "module",
55
"description": "A simple, beautiful, and embeddable JavaScript Markdown editor that easy to use. Features include autosaving and spell checking.",
66
"keywords": [
@@ -16,12 +16,10 @@
1616
"author": "Jeroen Akkerman",
1717
"repository": "github:Ionaru/easy-markdown-editor",
1818
"scripts": {
19-
"clean": "npx -y rimraf dist",
2019
"build": "rollup -c",
2120
"build:watch": "rollup -c -w",
2221
"build:types": "tsc --emitDeclarationOnly --declaration --outDir dist/types",
2322
"postbuild": "npm run build:types",
24-
"pretest": "npm run check",
2523
"test": "npm run test:unit",
2624
"test:unit": "vitest run",
2725
"test:e2e": "cypress run",

src/styles.scss

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,15 @@ $light-border-color: #d1d1d1;
44

55
:root {
66
--easymde-border-color: #{$light-border-color};
7-
--easymde-enabled-color: #{color.adjust($light-border-color, $lightness: 5%)};
7+
--easymde-enabled-color: #{color.adjust(
8+
$light-border-color,
9+
$lightness: 5%
10+
)};
811
--easymde-hover-color: #{$light-border-color};
9-
--easymde-active-color: #{color.adjust($light-border-color, $lightness: -5%)};
12+
--easymde-active-color: #{color.adjust(
13+
$light-border-color,
14+
$lightness: -5%
15+
)};
1016
}
1117

1218
// @media (prefers-color-scheme: dark) {

0 commit comments

Comments
 (0)