Skip to content

Commit

Permalink
chore(): npm-publish
Browse files Browse the repository at this point in the history
  • Loading branch information
dimpu committed Jan 28, 2025
1 parent 3e38cc1 commit 288afcc
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3

- name: Configure Git for HTTPS
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config --global url."https://[email protected]/".insteadOf "ssh://[email protected]/"
# Step 2: Set up Node.js
- name: Set up Node.js
uses: actions/setup-node@v4
Expand All @@ -28,11 +34,11 @@ jobs:

# Step 5: Build the library with pnpm
- name: Build ng-mdx
run: pnpm run lib.build
run: npm run lib.build

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

- name: Publish to npm
run: npm Publish
run: npm publish dist/ngx-md

0 comments on commit 288afcc

Please sign in to comment.