Skip to content

Commit

Permalink
Added Workflow to publish
Browse files Browse the repository at this point in the history
  • Loading branch information
ashutosh1919 committed Feb 16, 2021
1 parent 3fac077 commit fc0e2c1
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 2 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/release-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: React Awesome Loader

on:
release:
types: [created]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
- run: npm ci
- run: npm run build
- run: npm test

publish-gpr:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://npm.pkg.github.com/
- run: npm ci
- run: npm run build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-awesome-loaders",
"version": "0.1.36",
"version": "0.1.37",
"description": "High quality, super responsive and completely customisable Loading Animations to insert into your website with single line of code.",
"main": "./lib/index.js",
"dependencies": {
Expand All @@ -26,7 +26,7 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/ashutosh1919/react-awesome-loaders.git"
"url": "https://github.com/ashutosh1919/react-awesome-loaders.git"
},
"devDependencies": {
"@babel/core": "^7.12.10",
Expand Down

0 comments on commit fc0e2c1

Please sign in to comment.