Skip to content

Commit 3e38cc1

Browse files
committed
chore(): npm-publish
1 parent 243e2c0 commit 3e38cc1

File tree

1 file changed

+8
-16
lines changed

1 file changed

+8
-16
lines changed

.github/workflows/npm-publish.yml

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,15 @@ jobs:
1616

1717
# Step 2: Set up Node.js
1818
- name: Set up Node.js
19-
uses: actions/setup-node@v3
19+
uses: actions/setup-node@v4
2020
with:
21-
node-version: '20'
22-
registry-url: 'https://registry.npmjs.org/'
21+
node-version: "20"
22+
registry-url: "https://registry.npmjs.org/"
23+
token: ${{ secrets.NPM_TOKEN }} # Auth for npm
2324

2425
# Step 3: Install pnpm
25-
- name: Install pnpm
26-
run: |
27-
npm install -g pnpm
28-
29-
# Step 4: Install dependencies with pnpm
30-
- name: Install dependencies
31-
run: pnpm install --frozen-lockfile
26+
- name: Install npm
27+
run: npm ci
3228

3329
# Step 5: Build the library with pnpm
3430
- name: Build ng-mdx
@@ -38,9 +34,5 @@ jobs:
3834
- name: Copy README.md to library folder
3935
run: cp README.md dist/ngx-md/README.md
4036

41-
# Step 7: Run semantic-release to publish to npm
42-
- name: Run semantic-release
43-
env:
44-
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
45-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
46-
run: pnpx semantic-release
37+
- name: Publish to npm
38+
run: npm Publish

0 commit comments

Comments
 (0)