Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/publish_to_npm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Publish to npm

on:
release:
types: [created]

jobs:
publish:
name: Publish to npm
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 'lts/*'
cache: 'npm'

- name: Install dependencies
run: npm install

- name: Build the library
run: npm run build-lib

- name: Publish to npm
working-directory: ./dist/angular-mydatepicker
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm publish --access public
33 changes: 0 additions & 33 deletions example/karma.conf.js

This file was deleted.

15 changes: 0 additions & 15 deletions example/test.ts

This file was deleted.

18 changes: 0 additions & 18 deletions example/tsconfig.spec.json

This file was deleted.

Loading
Loading