Skip to content
This repository has been archived by the owner on Aug 24, 2023. It is now read-only.

Commit

Permalink
Added npm publish github action config
Browse files Browse the repository at this point in the history
  • Loading branch information
Ngineer101 committed Oct 19, 2020
1 parent 3731e76 commit 3021d8d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: NPM publish
on:
release:
types: [published]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- run: npm install
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"video",
"image"
],
"author": "Ngineer101 <[email protected]>",
"author": "Ngineer101 <[email protected]>",
"license": "MIT",
"repository": "https://github.com/Ngineer101/react-image-video-lightbox",
"bugs": "https://github.com/Ngineer101/react-image-video-lightbox/issues",
Expand Down

0 comments on commit 3021d8d

Please sign in to comment.