Skip to content

Commit f335695

Browse files
denniskigenclaude
andcommitted
(fix) Create yarn.lock in build output for Yarn Berry publish
Yarn Berry requires dist/ngx-formentry to be a workspace or a standalone project. Create an empty yarn.lock so it's treated as a standalone project during npm publish. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent cdd2468 commit f335695

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575
- run: git add . && git commit -m "Prerelease version" --no-verify
7676

7777
- name: Publish pre-release
78-
run: yarn --cwd dist/ngx-formentry npm publish --tag next --access public
78+
run: touch dist/ngx-formentry/yarn.lock && yarn --cwd dist/ngx-formentry npm publish --tag next --access public
7979
env:
8080
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
8181

@@ -113,6 +113,6 @@ jobs:
113113
run: yarn build:lib
114114

115115
- name: Publish release
116-
run: yarn --cwd dist/ngx-formentry npm publish --tag latest --access public
116+
run: touch dist/ngx-formentry/yarn.lock && yarn --cwd dist/ngx-formentry npm publish --tag latest --access public
117117
env:
118118
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

0 commit comments

Comments
 (0)