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
21 changes: 0 additions & 21 deletions .eslintrc

This file was deleted.

37 changes: 37 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Build&Test

on:
push:
branches: [develop]
pull_request:
branches: [develop]
workflow_dispatch:

jobs:
build-and-test:
name: Build, Lint & Test
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Lint library
run: npm run lint:library

- name: Run tests
run: npm run test:library

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

- name: Build demo
run: npm run build:demo
58 changes: 0 additions & 58 deletions .github/workflows/ci.yml

This file was deleted.

37 changes: 37 additions & 0 deletions .github/workflows/publish_to_npm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Publish to npm

on:
release:
types: [created]
workflow_dispatch:

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

permissions:
id-token: write
contents: read


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

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

- name: Install dependencies
run: npm install

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

- name: Publish to npm
working-directory: ./dist/angular-notifier
run: npm publish --access public
Loading