Skip to content

Commit 6e392cd

Browse files
docs(README): upgrade lerna (#921)
* docs(README): update nodejs to conform new npm release process * docs(README): revert releaserc yml changes * docs(README): update yml files to fix release * docs(README): add verbose to releaserc yml * docs(README): remove tokens in nodejs yml * docs(README): revert whoami changes * docs(README): update auth token mechanism * docs(README): upgrade lerna * docs(README): upgrade lerna
1 parent fdb7100 commit 6e392cd

File tree

4 files changed

+867
-1329
lines changed

4 files changed

+867
-1329
lines changed

.github/workflows/nodejs.yml

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -68,23 +68,6 @@ jobs:
6868

6969
- run: yarn install --frozen-lockfile
7070
- run: yarn build
71-
72-
- name: Exchange OIDC token for npm token
73-
id: npm-oidc
74-
run: |
75-
# Get GitHub OIDC token
76-
OIDC_TOKEN=$(curl -sS -H "Authorization: Bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" \
77-
"${ACTIONS_ID_TOKEN_REQUEST_URL}&audience=https://registry.npmjs.org" | jq -r '.value')
78-
79-
# Exchange for npm access token
80-
NPM_ACCESS_TOKEN=$(curl -sS -X POST "https://registry.npmjs.org/-/npm/v1/oidc/token" \
81-
-H "Content-Type: application/json" \
82-
-d "{\"oidcToken\": \"${OIDC_TOKEN}\"}" | jq -r '.token')
83-
84-
# Mask the token and export for subsequent steps
85-
echo "::add-mask::${NPM_ACCESS_TOKEN}"
86-
echo "NODE_AUTH_TOKEN=${NPM_ACCESS_TOKEN}" >> $GITHUB_ENV
87-
8871
- run: yarn run semantic-release
8972
env:
9073
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

lerna.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
{
2-
"packages": ["packages/*"],
2+
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
33
"version": "5.1.0",
4-
"exact": true,
54
"npmClient": "yarn",
6-
"useWorkspaces": true,
75
"command": {
86
"publish": {
97
"registry": "https://registry.npmjs.org/",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
"jest-environment-jsdom": "28.1.3",
9595
"jest-jasmine2": "28.1.3",
9696
"jest-junit": "16.0.0",
97-
"lerna": "6.6.2",
97+
"lerna": "8.1.9",
9898
"lint-staged": "13.3.0",
9999
"lockfile-lint": "4.14.1",
100100
"markdown-link-check": "3.14.2",

0 commit comments

Comments
 (0)