ep_chat_log_join_leave 1.0.29 → 1.0.31

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@v4
25
+ uses: actions/checkout@v6
26
26
  with:
27
27
  repository: ether/etherpad-lite
28
28
  path: etherpad-lite
29
- - uses: pnpm/action-setup@v3
29
+ - uses: pnpm/action-setup@v5
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@v4
38
+ - uses: actions/cache@v5
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@v4
47
+ uses: actions/checkout@v6
48
48
  with:
49
49
  path: plugin
50
50
  - name: Remove tests
@@ -12,10 +12,10 @@ jobs:
12
12
  steps:
13
13
  -
14
14
  name: Check out Etherpad core
15
- uses: actions/checkout@v4
15
+ uses: actions/checkout@v6
16
16
  with:
17
17
  repository: ether/etherpad-lite
18
- - uses: pnpm/action-setup@v3
18
+ - uses: pnpm/action-setup@v5
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@v4
27
+ - uses: actions/cache@v5
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@v4
36
+ uses: actions/checkout@v6
37
37
  with:
38
38
  path: ./node_modules/__tmp
39
39
  -
@@ -15,7 +15,7 @@ jobs:
15
15
  publish-npm:
16
16
  runs-on: ubuntu-latest
17
17
  permissions:
18
- contents: write # for `git push --follow-tags` of the version bump
18
+ contents: write # for the atomic version-bump push (branch + tag)
19
19
  id-token: write # for npm OIDC trusted publishing
20
20
  steps:
21
21
  - uses: actions/setup-node@v6
@@ -60,8 +60,22 @@ jobs:
60
60
  git config user.name 'github-actions[bot]'
61
61
  git config user.email '41898282+github-actions[bot]@users.noreply.github.com'
62
62
  pnpm i
63
+ # `pnpm version patch` bumps package.json, makes a commit, and creates
64
+ # a `v<new-version>` tag. Capture the new tag name from package.json
65
+ # rather than parsing pnpm's output, which has historically varied.
63
66
  pnpm version patch
64
- git push --follow-tags
67
+ NEW_TAG="v$(node -p "require('./package.json').version")"
68
+ # CRITICAL: use --atomic so the branch update and the tag update
69
+ # succeed (or fail) as a single transaction on the server. The old
70
+ # `git push --follow-tags` was non-atomic per ref: if a concurrent
71
+ # publish run won the race, the branch fast-forward would be rejected
72
+ # but the tag push would still land — leaving a dangling tag with no
73
+ # matching commit on the branch. Subsequent runs would then forever
74
+ # try to bump to the same already-existing tag and fail with
75
+ # `tag 'vN+1' already exists`. With --atomic, a rejected branch push
76
+ # rejects the tag push too, and the next workflow tick can retry
77
+ # cleanly against the up-to-date refs.
78
+ git push --atomic origin "${GITHUB_REF_NAME}" "${NEW_TAG}"
65
79
  # This is required if the package has a prepare script that uses something
66
80
  # in dependencies or devDependencies.
67
81
  -
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ep_chat_log_join_leave",
3
- "version": "1.0.29",
3
+ "version": "1.0.31",
4
4
  "description": "Etherpad plugin to log user joins and leaves in the chat history",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -25,7 +25,7 @@
25
25
  "devDependencies": {
26
26
  "eslint": "^8.57.1",
27
27
  "eslint-config-etherpad": "^4.0.4",
28
- "typescript": "^5.9.3"
28
+ "typescript": "^6.0.2"
29
29
  },
30
30
  "engines": {
31
31
  "node": ">=18.0.0"