ep_webrtc 0.1.91 → 0.1.92

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
@@ -19,22 +19,42 @@ jobs:
19
19
  with:
20
20
  node-version: 12
21
21
 
22
- - name: Install Etherpad core
22
+ - name: Check out Etherpad core
23
23
  uses: actions/checkout@v2
24
24
  with:
25
25
  repository: ether/etherpad-lite
26
26
 
27
- - name: Install ${{github.event.repository.name}}
27
+ - name: Check out the plugin
28
28
  uses: actions/checkout@v2
29
29
  with:
30
- path: ./node_modules/${{github.event.repository.name}}
30
+ path: ./node_modules/__tmp
31
31
 
32
- - name: Install ${{github.event.repository.name}} dependencies
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
+
38
+ - name: Determine plugin name
39
+ id: plugin_name
40
+ run: |
41
+ cd ./node_modules/__tmp
42
+ npx -c 'printf %s\\n "::set-output name=plugin_name::${npm_package_name}"'
43
+
44
+ - name: Rename plugin directory
45
+ env:
46
+ PLUGIN_NAME: ${{ steps.plugin_name.outputs.plugin_name }}
33
47
  run: |
34
- cd node_modules/${{github.event.repository.name}}
48
+ mv ./node_modules/__tmp ./node_modules/"${PLUGIN_NAME}"
49
+
50
+ - name: Install plugin dependencies
51
+ env:
52
+ PLUGIN_NAME: ${{ steps.plugin_name.outputs.plugin_name }}
53
+ run: |
54
+ cd ./node_modules/"${PLUGIN_NAME}"
35
55
  npm ci
36
56
 
37
- # This must be run after installing the plugins, otherwise npm will try to
57
+ # This must be run after setting up the plugin, otherwise npm will try to
38
58
  # hoist common dependencies by removing them from src/node_modules and
39
59
  # installing them in the top-level node_modules. As of v6.14.10, npm's hoist
40
60
  # logic appears to be buggy, because it sometimes removes dependencies from
@@ -44,10 +64,6 @@ jobs:
44
64
  - name: Install Etherpad core dependencies
45
65
  run: src/bin/installDeps.sh
46
66
 
47
- - name: export GIT_HASH to env
48
- id: environment
49
- run: echo "::set-output name=sha_short::$(git rev-parse --short ${{ github.sha }})"
50
-
51
67
  - name: Create settings.json
52
68
  run: cp settings.json.template settings.json
53
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 src/bin/plugins/updateAllPluginsScript.sh
package/package.json CHANGED
@@ -5,28 +5,28 @@
5
5
  "url": "git@github.com:ether/ep_webrtc.git",
6
6
  "type": "git"
7
7
  },
8
- "version": "0.1.91",
8
+ "version": "0.1.92",
9
9
  "description": "WebRTC based audio/video chat to Etherpad",
10
10
  "author": "John McLear <john@mclear.co.uk>",
11
11
  "contributors": [],
12
12
  "engines": {
13
- "node": ">=10.13.0"
13
+ "node": ">=12.13.0"
14
14
  },
15
15
  "dependencies": {},
16
16
  "funding": {
17
17
  "type": "individual",
18
- "url": "http://etherpad.org/"
18
+ "url": "https://etherpad.org/"
19
19
  },
20
20
  "devDependencies": {
21
- "eslint": "^7.22.0",
22
- "eslint-config-etherpad": "^1.0.26",
23
- "eslint-plugin-cypress": "^2.11.2",
21
+ "eslint": "^7.32.0",
22
+ "eslint-config-etherpad": "^2.0.2",
23
+ "eslint-plugin-cypress": "^2.12.1",
24
24
  "eslint-plugin-eslint-comments": "^3.2.0",
25
- "eslint-plugin-mocha": "^8.1.0",
25
+ "eslint-plugin-mocha": "^9.0.0",
26
26
  "eslint-plugin-node": "^11.1.0",
27
27
  "eslint-plugin-prefer-arrow": "^1.2.3",
28
- "eslint-plugin-promise": "^4.3.1",
29
- "eslint-plugin-you-dont-need-lodash-underscore": "^6.11.0"
28
+ "eslint-plugin-promise": "^5.1.1",
29
+ "eslint-plugin-you-dont-need-lodash-underscore": "^6.12.0"
30
30
  },
31
31
  "eslintConfig": {
32
32
  "ignorePatterns": [