Skip to content

Commit a8d55bd

Browse files
author
Phillip Lorenzo
authored
Merge pull request #268 from XYOracleNetwork/develop
Release workflow cleanup
2 parents 94482a6 + fbe14ad commit a8d55bd

File tree

3 files changed

+25
-16
lines changed

3 files changed

+25
-16
lines changed

.github/workflows/actions.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: CI
22

3-
on: [push]
3+
on:
4+
push:
5+
branches-ignore:
6+
- 'master'
47

58
jobs:
69
build:

.github/workflows/release.yml

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,27 @@ on:
66
- 'v*'
77

88
jobs:
9-
build:
9+
build:
1010
runs-on: ubuntu-latest
11-
steps:
12-
- uses: actions/checkout@v1
11+
steps:
12+
- uses: actions/checkout@v2
1313
- uses: actions/setup-node@v1
14-
with:
15-
node-version: 10.15.0
16-
registry-url: https://npm.pkg.github.com/
17-
scope: '@xyoraclenetwork'
18-
- name: Build and Test
19-
run: |
20-
yarn install
21-
yarn build
22-
yarn test
23-
- name: publish
24-
run: yarn publish
14+
with:
15+
node-version: 10.15.0
16+
- run: npm ci
17+
- run: npm test
18+
19+
publish-gpr:
20+
needs: build
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/checkout@v2
24+
- uses: actions/setup-node@v1
25+
with:
26+
node-version: 10.15.0
27+
registry-url: https://npm.pkg.github.com/
28+
scope: '@xyoraclenetwork'
29+
- run: npm ci
30+
- run: npm publish
2531
env:
2632
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

.npmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
registry=https://npm.pkg.github.com/@xyoraclenetwork
1+
registry=https://npm.pkg.github.com/

0 commit comments

Comments
 (0)