Skip to content

Commit ac41db9

Browse files
authored
fix(lerna): upgrade to v9 for OIDC npm publishing (#6996)
1 parent 8452a50 commit ac41db9

4 files changed

Lines changed: 1244 additions & 755 deletions

File tree

.github/workflows/release.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,5 @@ jobs:
6161
GITHUB_TOKEN: ${{ steps.token.outputs.token }}
6262
NAME: ${{ secrets.SOCIALGROOVYBOT_NAME }}
6363
EMAIL: ${{ secrets.SOCIALGROOVYBOT_EMAIL }}
64-
- name: Setup token
65-
run: echo //registry.npmjs.org/:_authToken=${NPM_TOKEN} > .npmrc
66-
env:
67-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
6864
- name: Deploy to npm
6965
run: yarn lerna publish from-package --yes
70-
- name: Remove .npmrc
71-
if: always()
72-
run: rm .npmrc

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@
99
"npmClient": "yarn",
1010
"version": "4.204.0",
1111
"$schema": "node_modules/lerna/schemas/lerna-schema.json"
12-
}
12+
}

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@
3030
"lint:quiet": "lerna run lint -- --quiet",
3131
"format": "lerna run format --stream",
3232
"format:check": "lerna run format:check --stream",
33-
"precommit": "lerna run precommit --stream"
33+
"precommit": "lerna run precommit --stream",
34+
"repair": "lerna repair"
3435
},
3536
"repository": {
3637
"type": "git",
@@ -41,7 +42,7 @@
4142
},
4243
"devDependencies": {
4344
"husky": "^9.1.7",
44-
"lerna": "8.2.3"
45+
"lerna": "9.0.3"
4546
},
4647
"workspaces": [
4748
"packages/*"

0 commit comments

Comments
 (0)