Skip to content

Commit 39c43ab

Browse files
committed
Fixed publish of pnpm
1 parent 626faa0 commit 39c43ab

File tree

4 files changed

+17
-7
lines changed

4 files changed

+17
-7
lines changed

.github/workflows/1maxPadPerInstance.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ jobs:
4545
path: test1
4646

4747
- name: prep etherpad >> test1
48-
run: cd test1/src && pnpm i
48+
run: cd test1 && pnpm i
49+
- name: Copy settings json for Dirty db to be active
50+
run: cp test1/settings.json.template test1/settings.json
4951

5052
- name: start etherpad >> test1
5153
run: cd test1 && pnpm run prod > test1log.txt &

.github/workflows/3maxPadPerInstance.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,10 @@ jobs:
4646
path: test1
4747

4848
- name: prep etherpad >> test1
49-
run: cd test1/src && pnpm i
49+
run: cd test1 && pnpm i
50+
51+
- name: Copy settings json for Dirty db to be active
52+
run: cp test1/settings.json.template test1/settings.json
5053

5154
- name: start etherpad >> test1
5255
run: cd test1 && pnpm run prod &
@@ -62,7 +65,7 @@ jobs:
6265
run: sed 's/9001/9002/g' test2/settings.json.template > test2/settings.json
6366

6467
- name: prep etherpad >> test2
65-
run: cd test2/src && pnpm i
68+
run: cd test2 && pnpm i
6669

6770
- name: start etherpad >> test2
6871
run: cd test2 && pnpm run prod &
@@ -78,7 +81,7 @@ jobs:
7881
run: sed 's/9001/9003/g' test2/settings.json.template > test3/settings.json
7982

8083
- name: prep etherpad >> test3
81-
run: cd test3/src && pnpm i
84+
run: cd test3 && pnpm i
8285

8386
- name: start etherpad >> test3
8487
run: cd test3 && pnpm run prod &

.github/workflows/npmpublish.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,11 @@ jobs:
7575
git push --follow-tags
7676
# This is required if the package has a prepare script that uses something
7777
# in dependencies or devDependencies.
78+
# Workaround based on https://github.com/pnpm/pnpm/issues/3141
79+
- name: Set publishing config
80+
run: pnpm config set '//registry.npmjs.org/:_authToken' "${NODE_AUTH_TOKEN}"
81+
env:
82+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
7883
-
7984
run: pnpm i
8085
# `npm publish` must come after `git push` otherwise there is a race
@@ -89,10 +94,8 @@ jobs:
8994
# the second's will succeed.
9095
-
9196
run: pnpm publish
92-
env:
93-
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
9497
-
9598
name: Add package to etherpad organization
96-
run: pnpm access grant read-write etherpad:developers
99+
run: npm access grant read-write etherpad:developers
97100
env:
98101
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

.github/workflows/rapidUniqueness.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ jobs:
4747

4848
- name: prep etherpad >> test1
4949
run: cd test1 && pnpm i
50+
- name: Copy settings json for Dirty db to be active
51+
run: cp test1/settings.json.template test1/settings.json
5052

5153
- name: start etherpad >> test1
5254
run: cd test1 && pnpm run prod &

0 commit comments

Comments
 (0)