ep_hide_referrer 0.0.36 → 0.0.41
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.
|
@@ -22,11 +22,11 @@ jobs:
|
|
|
22
22
|
version: 1.0
|
|
23
23
|
-
|
|
24
24
|
name: Install etherpad core
|
|
25
|
-
uses: actions/checkout@
|
|
25
|
+
uses: actions/checkout@v4
|
|
26
26
|
with:
|
|
27
27
|
repository: ether/etherpad-lite
|
|
28
28
|
path: etherpad-lite
|
|
29
|
-
- uses: pnpm/action-setup@
|
|
29
|
+
- uses: pnpm/action-setup@v3
|
|
30
30
|
name: Install pnpm
|
|
31
31
|
with:
|
|
32
32
|
version: 10
|
|
@@ -35,7 +35,7 @@ jobs:
|
|
|
35
35
|
shell: bash
|
|
36
36
|
run: |
|
|
37
37
|
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
|
|
38
|
-
- uses: actions/cache@
|
|
38
|
+
- uses: actions/cache@v4
|
|
39
39
|
name: Setup pnpm cache
|
|
40
40
|
with:
|
|
41
41
|
path: ${{ env.STORE_PATH }}
|
|
@@ -44,7 +44,7 @@ jobs:
|
|
|
44
44
|
${{ runner.os }}-pnpm-store-
|
|
45
45
|
-
|
|
46
46
|
name: Checkout plugin repository
|
|
47
|
-
uses: actions/checkout@
|
|
47
|
+
uses: actions/checkout@v4
|
|
48
48
|
with:
|
|
49
49
|
path: plugin
|
|
50
50
|
- name: Remove tests
|
|
@@ -62,6 +62,7 @@ jobs:
|
|
|
62
62
|
name: Run the backend tests
|
|
63
63
|
working-directory: ./etherpad-lite/src
|
|
64
64
|
run: |
|
|
65
|
+
shopt -s globstar
|
|
65
66
|
res=$(find ./plugin_packages -path "*/static/tests/backend/specs/*" 2>/dev/null | wc -l)
|
|
66
67
|
if [ $res -eq 0 ]; then
|
|
67
68
|
echo "No backend tests found"
|
|
@@ -12,10 +12,10 @@ jobs:
|
|
|
12
12
|
steps:
|
|
13
13
|
-
|
|
14
14
|
name: Check out Etherpad core
|
|
15
|
-
uses: actions/checkout@
|
|
15
|
+
uses: actions/checkout@v4
|
|
16
16
|
with:
|
|
17
17
|
repository: ether/etherpad-lite
|
|
18
|
-
- uses: pnpm/action-setup@
|
|
18
|
+
- uses: pnpm/action-setup@v3
|
|
19
19
|
name: Install pnpm
|
|
20
20
|
with:
|
|
21
21
|
version: 10
|
|
@@ -24,7 +24,7 @@ jobs:
|
|
|
24
24
|
shell: bash
|
|
25
25
|
run: |
|
|
26
26
|
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
|
|
27
|
-
- uses: actions/cache@
|
|
27
|
+
- uses: actions/cache@v4
|
|
28
28
|
name: Setup pnpm cache
|
|
29
29
|
with:
|
|
30
30
|
path: ${{ env.STORE_PATH }}
|
|
@@ -33,7 +33,7 @@ jobs:
|
|
|
33
33
|
${{ runner.os }}-pnpm-store-
|
|
34
34
|
-
|
|
35
35
|
name: Check out the plugin
|
|
36
|
-
uses: actions/checkout@
|
|
36
|
+
uses: actions/checkout@v4
|
|
37
37
|
with:
|
|
38
38
|
path: ./node_modules/__tmp
|
|
39
39
|
-
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# This workflow will run tests using node and then publish a package to the npm registry when a release is created
|
|
2
2
|
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
|
|
3
|
+
#
|
|
4
|
+
# Publishing uses npm Trusted Publishing (OIDC) — no NPM_TOKEN secret is
|
|
5
|
+
# required. Each package must have a trusted publisher configured on npmjs.com
|
|
6
|
+
# pointing at this workflow file. See:
|
|
7
|
+
# https://docs.npmjs.com/trusted-publishers
|
|
3
8
|
|
|
4
9
|
name: Node.js Package
|
|
5
10
|
|
|
@@ -9,11 +14,19 @@ on:
|
|
|
9
14
|
jobs:
|
|
10
15
|
publish-npm:
|
|
11
16
|
runs-on: ubuntu-latest
|
|
17
|
+
permissions:
|
|
18
|
+
contents: write # for `git push --follow-tags` of the version bump
|
|
19
|
+
id-token: write # for npm OIDC trusted publishing
|
|
12
20
|
steps:
|
|
13
|
-
- uses: actions/setup-node@
|
|
21
|
+
- uses: actions/setup-node@v6
|
|
14
22
|
with:
|
|
23
|
+
# OIDC trusted publishing needs npm >= 11.5.1, which requires
|
|
24
|
+
# Node >= 20.17.0. setup-node's `20` resolves to the latest
|
|
25
|
+
# 20.x, which satisfies that.
|
|
15
26
|
node-version: 20
|
|
16
27
|
registry-url: https://registry.npmjs.org/
|
|
28
|
+
- name: Upgrade npm to >=11.5.1 (required for trusted publishing)
|
|
29
|
+
run: npm install -g npm@latest
|
|
17
30
|
- name: Check out Etherpad core
|
|
18
31
|
uses: actions/checkout@v6
|
|
19
32
|
with:
|
|
@@ -63,12 +76,10 @@ jobs:
|
|
|
63
76
|
# already-used version number. By running `npm publish` after `git push`,
|
|
64
77
|
# back-to-back merges will cause the first merge's workflow to fail but
|
|
65
78
|
# the second's will succeed.
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
# env:
|
|
74
|
-
# NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|
|
79
|
+
#
|
|
80
|
+
# Use `npm publish` directly (not `pnpm publish`) because OIDC trusted
|
|
81
|
+
# publishing requires npm CLI >= 11.5.1 and `pnpm publish` shells out to
|
|
82
|
+
# whichever `npm` is on PATH; calling `npm` directly avoids any shim
|
|
83
|
+
# ambiguity.
|
|
84
|
+
- name: Publish to npm via OIDC
|
|
85
|
+
run: npm publish --provenance --access public
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
name: Node.js Package
|
|
2
2
|
on: [push]
|
|
3
3
|
|
|
4
|
+
# id-token: write must be granted here so the reusable npmpublish workflow
|
|
5
|
+
# can request an OIDC token for npm trusted publishing.
|
|
6
|
+
permissions:
|
|
7
|
+
contents: write
|
|
8
|
+
id-token: write
|
|
4
9
|
|
|
5
10
|
jobs:
|
|
6
11
|
backend:
|
|
@@ -14,5 +19,8 @@ jobs:
|
|
|
14
19
|
needs:
|
|
15
20
|
- backend
|
|
16
21
|
- frontend
|
|
22
|
+
permissions:
|
|
23
|
+
contents: write # for the version bump push
|
|
24
|
+
id-token: write # for npm OIDC trusted publishing
|
|
17
25
|
uses: ./.github/workflows/npmpublish.yml
|
|
18
26
|
secrets: inherit
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ep_hide_referrer",
|
|
3
3
|
"description": "Don't pass the referring URL to third parties. This handles the security/privacy issue where you don't want the third party service to know your pad URL. Improves Privacy.",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.41",
|
|
5
5
|
"author": "johnyma22 (John McLear) <john@mclear.co.uk>",
|
|
6
6
|
"contributors": [],
|
|
7
7
|
"repository": {
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"eslint": "^8.57.1",
|
|
20
20
|
"eslint-config-etherpad": "^4.0.4",
|
|
21
|
-
"typescript": "^
|
|
21
|
+
"typescript": "^5.9.3"
|
|
22
22
|
},
|
|
23
23
|
"scripts": {
|
|
24
24
|
"lint": "eslint .",
|
|
25
25
|
"lint:fix": "eslint --fix ."
|
|
26
26
|
}
|
|
27
|
-
}
|
|
27
|
+
}
|