issue-pane 2.5.0-ec3ff92a → 2.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc +19 -0
- package/.github/workflows/ci.yml +75 -0
- package/.nvmrc +1 -0
- package/package.json +3 -3
package/.eslintrc
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"root": true,
|
|
3
|
+
"env": {
|
|
4
|
+
"browser": true,
|
|
5
|
+
"es6": true,
|
|
6
|
+
"node": true
|
|
7
|
+
},
|
|
8
|
+
"globals": {
|
|
9
|
+
"Atomics": "readonly",
|
|
10
|
+
"SharedArrayBuffer": "readonly"
|
|
11
|
+
},
|
|
12
|
+
"rules": {
|
|
13
|
+
"no-unused-vars": ["warn", {
|
|
14
|
+
"argsIgnorePattern": "^_",
|
|
15
|
+
"varsIgnorePattern": "^_"
|
|
16
|
+
}]
|
|
17
|
+
},
|
|
18
|
+
"extends": ["eslint:recommended", "plugin:import/recommended"]
|
|
19
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- "**"
|
|
7
|
+
pull_request:
|
|
8
|
+
branches:
|
|
9
|
+
- "**"
|
|
10
|
+
workflow_dispatch:
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
build:
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
strategy:
|
|
16
|
+
matrix:
|
|
17
|
+
node-version:
|
|
18
|
+
- 18.x
|
|
19
|
+
- 20.x
|
|
20
|
+
steps:
|
|
21
|
+
- uses: actions/checkout@v2
|
|
22
|
+
- name: Use Node.js ${{ matrix.node-version }}
|
|
23
|
+
uses: actions/setup-node@v1
|
|
24
|
+
with:
|
|
25
|
+
node-version: ${{ matrix.node-version }}
|
|
26
|
+
- run: npm ci
|
|
27
|
+
- run: npm run lint --if-present
|
|
28
|
+
- run: npm test
|
|
29
|
+
- run: npm run build --if-present
|
|
30
|
+
- name: Save build
|
|
31
|
+
if: matrix.node-version == '18.x'
|
|
32
|
+
uses: actions/upload-artifact@v4
|
|
33
|
+
with:
|
|
34
|
+
name: build
|
|
35
|
+
path: |
|
|
36
|
+
.
|
|
37
|
+
!node_modules
|
|
38
|
+
retention-days: 1
|
|
39
|
+
npm-publish-build:
|
|
40
|
+
needs: build
|
|
41
|
+
runs-on: ubuntu-latest
|
|
42
|
+
steps:
|
|
43
|
+
- uses: actions/download-artifact@v4
|
|
44
|
+
with:
|
|
45
|
+
name: build
|
|
46
|
+
- uses: actions/setup-node@v1
|
|
47
|
+
with:
|
|
48
|
+
node-version: 18.x
|
|
49
|
+
- uses: rlespinasse/github-slug-action@v3.x
|
|
50
|
+
- name: Append commit hash to package version
|
|
51
|
+
run: 'sed -i -E "s/(\"version\": *\"[^\"]+)/\1-${GITHUB_SHA_SHORT}/" package.json'
|
|
52
|
+
- name: Disable pre- and post-publish actions
|
|
53
|
+
run: 'sed -i -E "s/\"((pre|post)publish)/\"ignore:\1/" package.json'
|
|
54
|
+
- uses: JS-DevTools/npm-publish@v1
|
|
55
|
+
with:
|
|
56
|
+
token: ${{ secrets.NPM_TOKEN }}
|
|
57
|
+
tag: ${{ env.GITHUB_REF_SLUG }}
|
|
58
|
+
|
|
59
|
+
npm-publish-latest:
|
|
60
|
+
needs: build
|
|
61
|
+
runs-on: ubuntu-latest
|
|
62
|
+
if: github.ref == 'refs/heads/main'
|
|
63
|
+
steps:
|
|
64
|
+
- uses: actions/download-artifact@v4
|
|
65
|
+
with:
|
|
66
|
+
name: build
|
|
67
|
+
- uses: actions/setup-node@v1
|
|
68
|
+
with:
|
|
69
|
+
node-version: 18.x
|
|
70
|
+
- name: Disable pre- and post-publish actions
|
|
71
|
+
run: 'sed -i -E "s/\"((pre|post)publish)/\"ignore:\1/" package.json'
|
|
72
|
+
- uses: JS-DevTools/npm-publish@v1
|
|
73
|
+
with:
|
|
74
|
+
token: ${{ secrets.NPM_TOKEN }}
|
|
75
|
+
tag: latest
|
package/.nvmrc
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
v18.19.0
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "issue-pane",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.1",
|
|
4
4
|
"description": "Solid-compatible Panes: issue editor",
|
|
5
5
|
"main": "./issuePane.js",
|
|
6
6
|
"scripts": {
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
"lint-fix": "eslint '*.js' --fix",
|
|
10
10
|
"start": "webpack serve --config webpack.dev.config.js --open",
|
|
11
11
|
"test": "npm run lint",
|
|
12
|
-
"
|
|
13
|
-
"
|
|
12
|
+
"prepublishOnly": "npm test",
|
|
13
|
+
"postpublish": "git push origin main --follow-tags"
|
|
14
14
|
},
|
|
15
15
|
"repository": {
|
|
16
16
|
"type": "git",
|