Skip to content

Commit

Permalink
Merge pull request #83 from XYOracleNetwork/develop
Browse files Browse the repository at this point in the history
try with both npm and github packages
  • Loading branch information
Phillip Lorenzo authored Feb 6, 2020
2 parents ae87913 + 95ac90d commit f8516b5
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ on:

jobs:
publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -17,4 +16,17 @@ jobs:
- run: yarn install
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: $ {{ secrets.NPM_TOKEN }}
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}}

0 comments on commit f8516b5

Please sign in to comment.