diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml new file mode 100644 index 0000000..1cc26d3 --- /dev/null +++ b/.github/workflows/npm-publish.yml @@ -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}} diff --git a/package.json b/package.json index a7d4e81..788109e 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "video", "image" ], - "author": "Ngineer101 ", + "author": "Ngineer101 ", "license": "MIT", "repository": "https://github.com/Ngineer101/react-image-video-lightbox", "bugs": "https://github.com/Ngineer101/react-image-video-lightbox/issues",