From 648b5f3b2db3d7746f120d9e7d35b85cf6dae627 Mon Sep 17 00:00:00 2001 From: Gyanendro Kh Date: Wed, 5 May 2021 17:27:24 +0530 Subject: [PATCH] Adding Github Action to publish to NPM. --- .github/workflows/npm-publish.yml | 19 +++++++++++++++++++ package.json | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/npm-publish.yml diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml new file mode 100644 index 0000000..0b0ba80 --- /dev/null +++ b/.github/workflows/npm-publish.yml @@ -0,0 +1,19 @@ +name: Publish Package + +on: + release: + types: [created] + +jobs: + publish-npm: + 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: yarn + - run: npm publish --access public + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/package.json b/package.json index da011fd..2c5a6f3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "gogoanime-api", - "version": "1.0.0", + "version": "0.0.1", "description": "GoGoAnime Scrapper API.", "main": "dist/index.js", "types": "dist/index.d.ts",