Skip to content

Commit

Permalink
Fixed publish of pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
SamTV12345 committed Nov 28, 2024
1 parent 626faa0 commit 39c43ab
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 7 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/1maxPadPerInstance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ jobs:
path: test1

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

- name: start etherpad >> test1
run: cd test1 && pnpm run prod > test1log.txt &
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/3maxPadPerInstance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ jobs:
path: test1

- name: prep etherpad >> test1
run: cd test1/src && pnpm i
run: cd test1 && pnpm i

- name: Copy settings json for Dirty db to be active
run: cp test1/settings.json.template test1/settings.json

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

- name: prep etherpad >> test2
run: cd test2/src && pnpm i
run: cd test2 && pnpm i

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

- name: prep etherpad >> test3
run: cd test3/src && pnpm i
run: cd test3 && pnpm i

- name: start etherpad >> test3
run: cd test3 && pnpm run prod &
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/npmpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,11 @@ jobs:
git push --follow-tags
# This is required if the package has a prepare script that uses something
# in dependencies or devDependencies.
# Workaround based on https://github.com/pnpm/pnpm/issues/3141
- name: Set publishing config
run: pnpm config set '//registry.npmjs.org/:_authToken' "${NODE_AUTH_TOKEN}"
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
-
run: pnpm i
# `npm publish` must come after `git push` otherwise there is a race
Expand All @@ -89,10 +94,8 @@ jobs:
# the second's will succeed.
-
run: pnpm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
-
name: Add package to etherpad organization
run: pnpm access grant read-write etherpad:developers
run: npm access grant read-write etherpad:developers
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
2 changes: 2 additions & 0 deletions .github/workflows/rapidUniqueness.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ jobs:

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

- name: start etherpad >> test1
run: cd test1 && pnpm run prod &
Expand Down

0 comments on commit 39c43ab

Please sign in to comment.