Skip to content

Commit fc0e2c1

Browse files
committed
Added Workflow to publish
1 parent 3fac077 commit fc0e2c1

File tree

2 files changed

+34
-2
lines changed

2 files changed

+34
-2
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: React Awesome Loader
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: actions/setup-node@v1
13+
with:
14+
node-version: 12
15+
- run: npm ci
16+
- run: npm run build
17+
- run: npm test
18+
19+
publish-gpr:
20+
needs: build
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/checkout@v2
24+
- uses: actions/setup-node@v1
25+
with:
26+
node-version: 12
27+
registry-url: https://npm.pkg.github.com/
28+
- run: npm ci
29+
- run: npm run build
30+
- run: npm publish
31+
env:
32+
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-awesome-loaders",
3-
"version": "0.1.36",
3+
"version": "0.1.37",
44
"description": "High quality, super responsive and completely customisable Loading Animations to insert into your website with single line of code.",
55
"main": "./lib/index.js",
66
"dependencies": {
@@ -26,7 +26,7 @@
2626
},
2727
"repository": {
2828
"type": "git",
29-
"url": "git+https://github.com/ashutosh1919/react-awesome-loaders.git"
29+
"url": "https://github.com/ashutosh1919/react-awesome-loaders.git"
3030
},
3131
"devDependencies": {
3232
"@babel/core": "^7.12.10",

0 commit comments

Comments
 (0)