From 5285cd06fa5552b0bb3c6f73f506bd5496cf4430 Mon Sep 17 00:00:00 2001 From: Kyle Taborski Date: Wed, 15 Dec 2021 10:13:47 -0800 Subject: [PATCH] CI deployment to npmjs (#10) * testing CI deployment to npmjs * fixing previous fail * trying a publish script * trying another release * push before this merges into main --- .github/workflows/yarn-npmjs-publish.yml | 17 +++++++++++++++++ package.json | 11 ++++++++--- 2 files changed, 25 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/yarn-npmjs-publish.yml diff --git a/.github/workflows/yarn-npmjs-publish.yml b/.github/workflows/yarn-npmjs-publish.yml new file mode 100644 index 0000000..1034fbd --- /dev/null +++ b/.github/workflows/yarn-npmjs-publish.yml @@ -0,0 +1,17 @@ +name: Publish docs-differ to npmjs +on: + release: + types: [created] +jobs: + yarn-publish-npmjs: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + # Setup .npmrc file to publish to npm + - uses: actions/setup-node@v2 + with: + node-version: '12' + registry-url: 'https://registry.npmjs.org' + - run: yarn publish + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/package.json b/package.json index f94e35e..e150fc4 100644 --- a/package.json +++ b/package.json @@ -1,9 +1,14 @@ { "name": "docs-differ", - "version": "1.0.6", - "description": "diffs two websites, built for react-spectrum docs site", + "version": "1.1.0-alpha", + "description": "Crawls and visually diffs two websites, built for @adobe/react-spectrum docs site.", "license": "Apache-2.0", - "homepage": ".", + "homepage": "https://github.com/ktabors/docs-differ", + "bugs": "https://github.com/ktabors/docs-differ/issues", + "repository": { + "url": "https://github.com/ktabors/docs-differ", + "type": "git" + }, "scripts": { "clean": "rm -rf node_modules", "run-differ": "node src/differ.js",