Skip to content

Commit 729f4f3

Browse files
committed
Github workflows
1 parent 1253695 commit 729f4f3

2 files changed

Lines changed: 18 additions & 1 deletion

File tree

.github/workflows/main.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Publish
2+
on:
3+
release:
4+
types: [created]
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- uses: actions/setup-node@v1
11+
with:
12+
node-version: '12.x'
13+
registry-url: 'https://registry.npmjs.org'
14+
- run: npm install
15+
- run: npm publish
16+
env:
17+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This project includes a pagination calculation, where you can simply pass some b
66
## Table of content
77

88
- [Usage](#usage)
9-
- [Build & Publish](#build-publish)
9+
- [Build & Publish](#build--publish)
1010
- [Information](#information)
1111

1212
## Usage

0 commit comments

Comments
 (0)