Skip to content

Commit 05df551

Browse files
authored
Merge pull request #7 from Gramli/feature/fix-karma-run
Fix Karma run and add Publish action
2 parents b3b755c + 36d3182 commit 05df551

File tree

7 files changed

+271
-143
lines changed

7 files changed

+271
-143
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Publish to npm
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
publish:
9+
name: Publish to npm
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v3
15+
16+
- name: Set up Node.js
17+
uses: actions/setup-node@v3
18+
with:
19+
node-version: 'lts/*'
20+
cache: 'npm'
21+
22+
- name: Install dependencies
23+
run: npm install
24+
25+
- name: Build the library
26+
run: npm run build-lib
27+
28+
- name: Publish to npm
29+
working-directory: ./dist/angular-mydatepicker
30+
env:
31+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
32+
run: npm publish --access public

example/karma.conf.js

Lines changed: 0 additions & 33 deletions
This file was deleted.

example/test.ts

Lines changed: 0 additions & 15 deletions
This file was deleted.

example/tsconfig.spec.json

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)