diff --git a/.github/workflows/npm-publish-github-packages.yml b/.github/workflows/npm-publish-github-packages.yml index 71a1911..61bee41 100644 --- a/.github/workflows/npm-publish-github-packages.yml +++ b/.github/workflows/npm-publish-github-packages.yml @@ -1,34 +1,20 @@ -# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created -# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages - -name: Node.js Package - +name: "publish npm" on: release: types: [created] jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - with: - node-version: 16 - - run: npm test - - publish-gpr: - needs: build + publish: runs-on: ubuntu-latest - permissions: - contents: read - packages: write steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - name: checkout + uses: actions/checkout@v2 + - name: node + uses: actions/setup-node@v2 with: - node-version: 16 - registry-url: https://npm.pkg.github.com/ - - run: npm publish + node-version: 12 + registry-url: https://registry.npmjs.org + - name: publish + run: npm publish --access public env: - NODE_AUTH_TOKEN: ${{secrets.TOKEN_NPM}} + NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}} diff --git a/package.json b/package.json index a58b7fb..85d0cca 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pikanetwork.js", - "version": "1.1.1", + "version": "1.1.2", "description": "An easy to use PikaNetwork API wrapper.", "main": "src/index.js", "author": "TejasLamba2006",