Skip to content

Commit e0a7800

Browse files
committed
fix: fix publish workflow
1 parent 117cf6c commit e0a7800

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/publish.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,18 @@ permissions:
88
contents: read
99

1010
jobs:
11-
build:
11+
publish:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v4
15-
# Setup .npmrc file to publish to npm
15+
1616
- uses: actions/setup-node@v4
1717
with:
18-
node-version: '>=20.0.0'
19-
registry-url: 'https://registry.npmjs.org/'
20-
- run: yarn
18+
node-version: 20
19+
registry-url: https://registry.npmjs.org/
20+
21+
- run: yarn install --frozen-lockfile
2122
- run: yarn run build:lib
22-
- run: yarn publish ./dist/libs/ngx-contextmenu
23+
24+
- name: Publish
25+
run: npm publish ./dist/libs/ngx-contextmenu --access public

0 commit comments

Comments
 (0)