Skip to content

Commit 03b22bc

Browse files
committed
Fix README.md publish
1 parent 5c7ac5d commit 03b22bc

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

.github/workflows/npm-publish.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,18 @@ jobs:
1212
- uses: actions/checkout@v4
1313
with:
1414
fetch-depth: 0
15+
1516
- uses: actions/setup-node@v4
1617
with:
1718
node-version: "20"
1819
registry-url: "https://registry.npmjs.org/"
1920

20-
- name: Setup pnpm
21+
- name: Setup PNPM
2122
uses: pnpm/action-setup@v3
2223
with:
2324
version: 8
2425

25-
- name: Install Dependencies
26+
- name: Install dependencies
2627
run: pnpm install
2728

2829
- name: Extract version from tag
@@ -38,10 +39,17 @@ jobs:
3839
- name: Build
3940
run: pnpm run build
4041

41-
- name: Pack Packages
42+
- name: Override symlinks
43+
run: |
44+
for d in ./packages/*; do
45+
rm "$d"/README.md
46+
cp ./README.md "$d"
47+
done
48+
49+
- name: Pack packages
4250
run: pnpm run pack-packages
4351

44-
- name: NPM Publish Packages
52+
- name: Publish packages
4553
env:
4654
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4755
run: |

0 commit comments

Comments
 (0)