Skip to content

Commit ecd53ed

Browse files
author
Luis M Torres
committed
ci: add GitHub Actions workflow for publishing to npm
1 parent 602b566 commit ecd53ed

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/publish.yaml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
on:
2+
push:
3+
branches: main
4+
5+
jobs:
6+
publish:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
- uses: actions/setup-node@v3
11+
with:
12+
node-version: '20'
13+
- run: npm ci
14+
- run: npm run build
15+
- uses: JS-DevTools/npm-publish@v3
16+
with:
17+
package: dist/ngx-bootstrap-components
18+
access: public
19+
token: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)