From 538ca572735c355654ff6ba666014a6459d6776b Mon Sep 17 00:00:00 2001 From: Scott Bedard Date: Tue, 14 Jun 2022 22:38:26 -0500 Subject: [PATCH] publish --- .github/workflows/publish.yml | 20 ++++++++++++++++++++ package.json | 12 ++++++++++-- 2 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..25cfa2d --- /dev/null +++ b/.github/workflows/publish.yml @@ -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}} diff --git a/package.json b/package.json index 7ffc612..bb3832f 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "stripe-gradient", + "name": "@bedard/gradient", "version": "0.1.0", "browser": "dist/gradient.umd.js", "main": "dist/gradient.cjs.js", @@ -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" }