Skip to content

Commit 94b1732

Browse files
committed
chore(REACH-550): test on prs and pushes, release only on main and beta
1 parent 8174abd commit 94b1732

File tree

2 files changed

+6
-12
lines changed

2 files changed

+6
-12
lines changed

.github/workflows/release.yml renamed to .github/workflows/build.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: Release
22

33
on:
4+
pull_request:
5+
branches:
6+
- main
7+
48
push:
59
branches:
610
- main
@@ -42,7 +46,9 @@ jobs:
4246
- run: (yarn server &) && sleep 1 && yarn test:integration
4347

4448
- run: yarn build
49+
4550
- run: yarn semantic-release
51+
if: ${{ contains(github.ref, 'refs/heads/main') || contains(github.ref, 'refs/heads/beta') }}
4652
env:
4753
GH_TOKEN: ${{ secrets.GH_TOKEN }}
4854
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -108,18 +108,6 @@
108108
"name": "beta",
109109
"prerelease": true
110110
}
111-
],
112-
"plugins": [
113-
"@semantic-release/commit-analyzer",
114-
"@semantic-release/release-notes-generator",
115-
"@semantic-release/npm",
116-
[
117-
"@semantic-release/exec",
118-
{
119-
"successCmd": "yarn run publish:github"
120-
}
121-
],
122-
"@semantic-release/github"
123111
]
124112
}
125113
}

0 commit comments

Comments
 (0)