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",