diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 86cc0bc..20badcc 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -6,7 +6,6 @@ on: jobs: publish-npm: - needs: build runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 @@ -17,4 +16,17 @@ jobs: - run: yarn install - run: npm publish --access public env: - NODE_AUTH_TOKEN: $ {{ secrets.NPM_TOKEN }} \ No newline at end of file + NODE_AUTH_TOKEN: $ {{ secrets.NPM_TOKEN }} + + publish-gpr: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: '10.x' + registry-url: https://npm.pkg.github.com/ + scope: '@XYOracleNetwork' + - run: npm publish --access public + env: + NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} \ No newline at end of file