Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update readme and deploy hooks #1

Merged
merged 4 commits into from
Jul 28, 2022
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
41 changes: 41 additions & 0 deletions .github/workflows/on-merge-main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: "Verify and Deploy"
on:
push:
branches:
- main
jobs:
verify_and_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Checkout 🛎️
run: npm ci

- name: Verify Code 👌
run: |
npm run lint
npm run prettier:check

- name: Build 🔧
run: |
npm run build:prod
npm run npm-build-package

# https://docs.npmjs.com/about-packages-and-modules
- uses: actions/setup-node@v3
- name: Deploy Package to `npmjs` 🚀
with:
registry-url: "https://registry.npmjs.org"
run: npm publish --access public --folder dist/npm
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

# https://docs.github.com/en/packages
# https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
- uses: actions/setup-node@v3
- name: Deploy Package to `gpr` 🚀
with:
registry-url: "https://npm.pkg.github.com"
run: npm publish --access public --folder dist/npm
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17 changes: 11 additions & 6 deletions .github/workflows/verify-pull-request.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
name: Verify Pull Request
"on": pull_request
name: "Verify Pull Request"
on: pull_request
jobs:
build:
verify_pull_request:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Build Check 🔧
run: npm ci

- name: Verify Code 👌
run: |
npm ci
npm run lint
npm run prettier:check

- name: Build 🔧
run: |
npm run build:prod
npm run npm-build-package
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
# Except these files and directories:
!.github/
!.husky/
!.scripts/
!e2e/src
!src/
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
<p align="center">
<img src="src/assets/pro-angular-logo.svg?sanitize=true">
<h1 align="center">Angular Scroll Top Button</h1>
</p>

[![npm version](https://badge.fury.io/js/@proangular%2Fngx-scroll-top.svg)](https://badge.fury.io/js/@proangular%2Fngx-scroll-top)
[![NPM Downloads](https://img.shields.io/amo/dw/@proangular%252Fngx-scroll-top.svg)](https://www.npmjs.com/@proangular/ngx-scroll-top)
[![Join the chat at https://gitter.im/ProAngular/community](https://badges.gitter.im/ProAngular/lobby.svg)](https://gitter.im/ProAngular/community)

# ngx-scroll-top
Configurable, lightweight back to top button for Angular projects

Expand Down
Loading