ep_markdown 0.1.41 → 0.1.42

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.
@@ -1,6 +1,3 @@
1
- # You need to change lines 38 and 46 in case the plugin's name on npmjs.com is different
2
- # from the repository name
3
-
4
1
  name: "Backend tests"
5
2
 
6
3
  # any branch is useful for testing before a PR is submitted
@@ -17,6 +14,10 @@ jobs:
17
14
  runs-on: ubuntu-latest
18
15
 
19
16
  steps:
17
+ - uses: actions/setup-node@v2
18
+ with:
19
+ node-version: 12
20
+
20
21
  - name: Install libreoffice
21
22
  run: |
22
23
  sudo add-apt-repository -y ppa:libreoffice/ppa
@@ -32,19 +33,29 @@ jobs:
32
33
  - name: Install all dependencies and symlink for ep_etherpad-lite
33
34
  run: src/bin/installDeps.sh
34
35
 
35
- # clone this repository into node_modules/ep_plugin-name
36
36
  - name: Checkout plugin repository
37
37
  uses: actions/checkout@v2
38
38
  with:
39
- path: ./node_modules/${{github.event.repository.name}}
39
+ path: ./node_modules/__tmp
40
+
41
+ - name: Determine plugin name
42
+ id: plugin_name
43
+ run: |
44
+ cd ./node_modules/__tmp
45
+ npx -c 'printf %s\\n "::set-output name=plugin_name::${npm_package_name}"'
46
+
47
+ - name: Rename plugin directory
48
+ run: |
49
+ mv ./node_modules/__tmp ./node_modules/"${PLUGIN_NAME}"
50
+ env:
51
+ PLUGIN_NAME: ${{ steps.plugin_name.outputs.plugin_name }}
40
52
 
41
53
  - name: Install plugin dependencies
42
54
  run: |
43
- cd node_modules/${{github.event.repository.name}}
55
+ cd ./node_modules/"${PLUGIN_NAME}"
44
56
  npm ci
57
+ env:
58
+ PLUGIN_NAME: ${{ steps.plugin_name.outputs.plugin_name }}
45
59
 
46
60
  - name: Run the backend tests
47
61
  run: cd src && npm test
48
-
49
- ##ETHERPAD_NPM_V=2
50
- ## NPM configuration automatically created using src/bin/plugins/updateAllPluginsScript.sh
@@ -29,6 +29,12 @@ jobs:
29
29
  with:
30
30
  path: ./node_modules/__tmp
31
31
 
32
+ - name: export GIT_HASH to env
33
+ id: environment
34
+ run: |
35
+ cd ./node_modules/__tmp
36
+ echo "::set-output name=sha_short::$(git rev-parse --short ${{ github.sha }})"
37
+
32
38
  - name: Determine plugin name
33
39
  id: plugin_name
34
40
  run: |
@@ -36,17 +42,17 @@ jobs:
36
42
  npx -c 'printf %s\\n "::set-output name=plugin_name::${npm_package_name}"'
37
43
 
38
44
  - name: Rename plugin directory
39
- run: |
40
- mv ./node_modules/__tmp ./node_modules/"${PLUGIN_NAME}"
41
45
  env:
42
46
  PLUGIN_NAME: ${{ steps.plugin_name.outputs.plugin_name }}
47
+ run: |
48
+ mv ./node_modules/__tmp ./node_modules/"${PLUGIN_NAME}"
43
49
 
44
50
  - name: Install plugin dependencies
51
+ env:
52
+ PLUGIN_NAME: ${{ steps.plugin_name.outputs.plugin_name }}
45
53
  run: |
46
54
  cd ./node_modules/"${PLUGIN_NAME}"
47
55
  npm ci
48
- env:
49
- PLUGIN_NAME: ${{ steps.plugin_name.outputs.plugin_name }}
50
56
 
51
57
  # This must be run after setting up the plugin, otherwise npm will try to
52
58
  # hoist common dependencies by removing them from src/node_modules and
@@ -58,10 +64,6 @@ jobs:
58
64
  - name: Install Etherpad core dependencies
59
65
  run: src/bin/installDeps.sh
60
66
 
61
- - name: export GIT_HASH to env
62
- id: environment
63
- run: echo "::set-output name=sha_short::$(git rev-parse --short ${{ github.sha }})"
64
-
65
67
  - name: Create settings.json
66
68
  run: cp settings.json.template settings.json
67
69
 
@@ -56,15 +56,22 @@ jobs:
56
56
  runs-on: ubuntu-latest
57
57
  steps:
58
58
  - uses: actions/checkout@v2
59
+ with:
60
+ fetch-depth: 0
59
61
  - uses: actions/setup-node@v1
60
62
  with:
61
63
  node-version: 12
62
64
  registry-url: https://registry.npmjs.org/
63
- - run: git config user.name 'github-actions[bot]'
64
- - run: git config user.email '41898282+github-actions[bot]@users.noreply.github.com'
65
- - run: npm ci
66
- - run: npm version patch
67
- - run: git push --follow-tags
65
+ - name: Bump version (patch)
66
+ run: |
67
+ LATEST_TAG=$(git describe --tags --abbrev=0) || exit 1
68
+ NEW_COMMITS=$(git rev-list --count "${LATEST_TAG}"..) || exit 1
69
+ [ "${NEW_COMMITS}" -gt 0 ] || exit 0
70
+ git config user.name 'github-actions[bot]'
71
+ git config user.email '41898282+github-actions[bot]@users.noreply.github.com'
72
+ npm ci
73
+ npm version patch
74
+ git push --follow-tags
68
75
  # `npm publish` must come after `git push` otherwise there is a race
69
76
  # condition: If two PRs are merged back-to-back then master/main will be
70
77
  # updated with the commits from the second PR before the first PR's
@@ -78,6 +85,3 @@ jobs:
78
85
  - run: npm publish
79
86
  env:
80
87
  NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
81
-
82
- ##ETHERPAD_NPM_V=2
83
- ## NPM configuration automatically created using bin/plugins/updateAllPluginsScript.sh
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ep_markdown",
3
3
  "description": "Edit and Export as Markdown in Etherpad",
4
- "version": "0.1.41",
4
+ "version": "0.1.42",
5
5
  "author": {
6
6
  "name": "John McLear",
7
7
  "email": "john@mclear.co.uk",
@@ -22,17 +22,18 @@
22
22
  "license": "Apache-2.0",
23
23
  "funding": {
24
24
  "type": "individual",
25
- "url": "http://etherpad.org/"
25
+ "url": "https://etherpad.org/"
26
26
  },
27
27
  "devDependencies": {
28
- "eslint": "^7.18.0",
29
- "eslint-config-etherpad": "^1.0.24",
28
+ "eslint": "^7.32.0",
29
+ "eslint-config-etherpad": "^2.0.2",
30
30
  "eslint-plugin-eslint-comments": "^3.2.0",
31
- "eslint-plugin-mocha": "^8.0.0",
31
+ "eslint-plugin-mocha": "^9.0.0",
32
32
  "eslint-plugin-node": "^11.1.0",
33
33
  "eslint-plugin-prefer-arrow": "^1.2.3",
34
- "eslint-plugin-promise": "^4.2.1",
35
- "eslint-plugin-you-dont-need-lodash-underscore": "^6.10.0"
34
+ "eslint-plugin-promise": "^5.1.1",
35
+ "eslint-plugin-you-dont-need-lodash-underscore": "^6.12.0",
36
+ "eslint-plugin-cypress": "^2.12.1"
36
37
  },
37
38
  "eslintConfig": {
38
39
  "root": true,