diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index 0aa7ba88..ac92b514 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -1,6 +1,9 @@ name: CI -on: [push] +on: + push: + branches-ignore: + - 'master' jobs: build: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e2112a77..a01a1c8a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,21 +6,27 @@ on: - 'v*' jobs: - build: + build: runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v1 + steps: + - uses: actions/checkout@v2 - uses: actions/setup-node@v1 - with: - node-version: 10.15.0 - registry-url: https://npm.pkg.github.com/ - scope: '@xyoraclenetwork' - - name: Build and Test - run: | - yarn install - yarn build - yarn test - - name: publish - run: yarn publish + with: + node-version: 10.15.0 + - run: npm ci + - run: npm test + + publish-gpr: + needs: build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: 10.15.0 + registry-url: https://npm.pkg.github.com/ + scope: '@xyoraclenetwork' + - run: npm ci + - run: npm publish env: NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} \ No newline at end of file diff --git a/.npmrc b/.npmrc index 9d0b3731..d751d01f 100644 --- a/.npmrc +++ b/.npmrc @@ -1 +1 @@ -registry=https://npm.pkg.github.com/@xyoraclenetwork \ No newline at end of file +registry=https://npm.pkg.github.com/ \ No newline at end of file