Skip to content

Commit 538ca57

Browse files
committed
publish
1 parent 1963580 commit 538ca57

File tree

2 files changed

+30
-2
lines changed

2 files changed

+30
-2
lines changed

.github/workflows/publish.yml

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

package.json

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "stripe-gradient",
2+
"name": "@bedard/gradient",
33
"version": "0.1.0",
44
"browser": "dist/gradient.umd.js",
55
"main": "dist/gradient.cjs.js",
@@ -18,5 +18,13 @@
1818
},
1919
"files": [
2020
"dist"
21-
]
21+
],
22+
"repository": {
23+
"type": "git",
24+
"url": "git+https://github.com/scottbedard/gradient.git"
25+
},
26+
"bugs": {
27+
"url": "https://github.com/scottbedard/gradient/issues"
28+
},
29+
"homepage": "https://github.com/scottbedard/gradient#readme"
2230
}

0 commit comments

Comments
 (0)