Skip to content

Commit

Permalink
chore: update workflows and README
Browse files Browse the repository at this point in the history
  • Loading branch information
yociduo committed Jan 21, 2024
1 parent 5c7949f commit d7c32ae
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 12 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,4 @@ jobs:
run: npm run build-pkg && npm run build-schematics

- name: Unit Test check
run: npm run test -- --browsers=ChromeHeadless --watch=false

- name: Unit Test package check
run: npm run test-pkg -- --browsers=ChromeHeadless --watch=false

- name: Unit Test Schematics check
run: npm run test-schematics
run: npm run test-ci && npm run test-schematics
7 changes: 4 additions & 3 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@ jobs:
with:
node-version: 20
- run: npm install
- run: npm run lint ngx-pendo
- run: npm run test-schematics
- run: npm run lint
- run: npm run build-pkg
- run: npm run build-schematics
- run: npm run test-ci
- run: npm run test-schematics

publish-npm:
needs: tests
Expand All @@ -35,7 +36,7 @@ jobs:
- run: npm run build-pkg
- run: npm run build-schematics
- run: npm run cp
- run: cd dist/ngx-pendo && npm publish
- run: npm publish dist/ngx-pendo
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
release:
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

An easy implementation pendo on angular6+ apps.

[![npm version](https://img.shields.io/npm/v/ngx-pendo.svg)](https://www.npmjs.com/package/ngx-pendo)
[![NPM version](https://img.shields.io/npm/v/ngx-pendo.svg)](https://www.npmjs.com/package/ngx-pendo)
[![NPM downloads](https://img.shields.io/npm/dm/ngx-pendo.svg?style=flat-square)](https://www.npmjs.com/package/ngx-pendo)
[![Build Status](https://github.com/yociduo/ngx-pendo/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/yociduo/ngx-pendo/actions/workflows/ci.yml)
[![License MIT](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/yociduo/ngx-pendo/blob/main/LICENSE)

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"build": "ng build",
"watch": "ng build --watch --configuration development",
"test": "ng test",
"test-pkg": "ng test ngx-pendo",
"test-ci": "ng test --browsers=ChromeHeadless --watch=false",
"test-schematics": "ts-node --project ./projects/ngx-pendo/tsconfig.schematics.json node_modules/jasmine/bin/jasmine.js ./projects/ngx-pendo/schematics/**/*.spec.ts",
"lint": "ng lint",
"build-pkg": "ng build ngx-pendo",
Expand Down

0 comments on commit d7c32ae

Please sign in to comment.