From 95ac90da79d772623703ff3bb983293e509c1f1b Mon Sep 17 00:00:00 2001 From: pllearns Date: Wed, 5 Feb 2020 17:16:37 -0800 Subject: [PATCH] try with both npm and github packages --- .github/workflows/publish.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) 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