File tree Expand file tree Collapse file tree 1 file changed +8
-16
lines changed Expand file tree Collapse file tree 1 file changed +8
-16
lines changed Original file line number Diff line number Diff line change @@ -16,19 +16,15 @@ jobs:
16
16
17
17
# Step 2: Set up Node.js
18
18
- name : Set up Node.js
19
- uses : actions/setup-node@v3
19
+ uses : actions/setup-node@v4
20
20
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
23
24
24
25
# 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
32
28
33
29
# Step 5: Build the library with pnpm
34
30
- name : Build ng-mdx
38
34
- name : Copy README.md to library folder
39
35
run : cp README.md dist/ngx-md/README.md
40
36
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
You can’t perform that action at this time.
0 commit comments