Skip to content

Commit

Permalink
Add script to automated publishing (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
hstemplewski authored Jan 18, 2022
1 parent 3d37636 commit ef2c403
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 10 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Publish

on:
release:
types: [published]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
registry-url: https://registry.npmjs.org/

- name: Install Dependencies
run: npm ci
env:
CI: true

- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
18 changes: 12 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-dialog-hook",
"version": "0.0.5",
"version": "0.0.6",
"description": "React hook for manage dialogs state",
"main": "lib/index.js",
"author": "Hubert Stemplewski",
Expand Down Expand Up @@ -46,8 +46,8 @@
"ts-jest": "^27.0.7",
"typescript": "^4.4.4"
},
"dependencies": {
"react": "^17.0.2",
"react-dom": "^17.0.2"
"peerDependencies": {
"react": ">= 17.0.2",
"react-dom": ">= 17.0.2"
}
}

0 comments on commit ef2c403

Please sign in to comment.