Skip to content

Commit

Permalink
publish
Browse files Browse the repository at this point in the history
  • Loading branch information
scottbedard committed Jun 15, 2022
1 parent 1963580 commit 538ca57
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 2 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: publish

on:
release:
types: [created]

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- run: npm install
- run: npm run build
- run: npm run publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
12 changes: 10 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "stripe-gradient",
"name": "@bedard/gradient",
"version": "0.1.0",
"browser": "dist/gradient.umd.js",
"main": "dist/gradient.cjs.js",
Expand All @@ -18,5 +18,13 @@
},
"files": [
"dist"
]
],
"repository": {
"type": "git",
"url": "git+https://github.com/scottbedard/gradient.git"
},
"bugs": {
"url": "https://github.com/scottbedard/gradient/issues"
},
"homepage": "https://github.com/scottbedard/gradient#readme"
}

0 comments on commit 538ca57

Please sign in to comment.