Skip to content

Commit

Permalink
CI deployment to npmjs (#10)
Browse files Browse the repository at this point in the history
* testing CI deployment to npmjs

* fixing previous fail

* trying a publish script

* trying another release

* push before this merges into main
  • Loading branch information
ktabors committed Dec 15, 2021
1 parent 44e5617 commit 5285cd0
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 3 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/yarn-npmjs-publish.yml
Original file line number Diff line number Diff line change
@@ -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 }}
11 changes: 8 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 5285cd0

Please sign in to comment.