Skip to content

Commit

Permalink
Fix README.md publish
Browse files Browse the repository at this point in the history
  • Loading branch information
mrlika committed Jun 25, 2024
1 parent 5c7ac5d commit 03b22bc
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,18 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: actions/setup-node@v4
with:
node-version: "20"
registry-url: "https://registry.npmjs.org/"

- name: Setup pnpm
- name: Setup PNPM
uses: pnpm/action-setup@v3
with:
version: 8

- name: Install Dependencies
- name: Install dependencies
run: pnpm install

- name: Extract version from tag
Expand All @@ -38,10 +39,17 @@ jobs:
- name: Build
run: pnpm run build

- name: Pack Packages
- name: Override symlinks
run: |
for d in ./packages/*; do
rm "$d"/README.md
cp ./README.md "$d"
done
- name: Pack packages
run: pnpm run pack-packages

- name: NPM Publish Packages
- name: Publish packages
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
Expand Down

0 comments on commit 03b22bc

Please sign in to comment.