Skip to content

Commit 288afcc

Browse files
committed
chore(): npm-publish
1 parent 3e38cc1 commit 288afcc

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/npm-publish.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ jobs:
1414
- name: Checkout code
1515
uses: actions/checkout@v3
1616

17+
- name: Configure Git for HTTPS
18+
env:
19+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20+
run: |
21+
git config --global url."https://$GITHUB_TOKEN@github.com/".insteadOf "ssh://git@github.com/"
22+
1723
# Step 2: Set up Node.js
1824
- name: Set up Node.js
1925
uses: actions/setup-node@v4
@@ -28,11 +34,11 @@ jobs:
2834

2935
# Step 5: Build the library with pnpm
3036
- name: Build ng-mdx
31-
run: pnpm run lib.build
37+
run: npm run lib.build
3238

3339
# Step 6: Copy the root README.md to the library folder
3440
- name: Copy README.md to library folder
3541
run: cp README.md dist/ngx-md/README.md
3642

3743
- name: Publish to npm
38-
run: npm Publish
44+
run: npm publish dist/ngx-md

0 commit comments

Comments
 (0)