Skip to content

Commit 0413aff

Browse files
committed
Run yarn readme before npm upgrade and skip lifecycle scripts during publish
1 parent 5b6ad25 commit 0413aff

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,14 @@ jobs:
8080
${{ runner.os }}-yarn-
8181
- run: yarn install --immutable
8282
- run: yarn build
83+
- name: Prepare package for publishing
84+
run: yarn readme
8385
- name: Upgrade npm for OIDC trusted publishing
84-
run: |
85-
npm install -g npm@latest
86-
# Re-enable corepack after npm upgrade (npm install -g disables it)
87-
corepack enable
88-
corepack prepare yarn@4.10.3 --activate
86+
run: npm install -g npm@latest
8987
- name: Publish to npm
88+
env:
89+
# Skip prepack script since we already ran yarn readme
90+
NPM_CONFIG_IGNORE_SCRIPTS: true
9091
run: |
9192
# Use npm CLI directly - requires npm >= 11.5.1 for OIDC trusted publishing
9293
# Yarn 4.10.3 OIDC support appears broken despite all env vars being set correctly

0 commit comments

Comments
 (0)