Skip to content

Commit aa09307

Browse files
committed
ci: fix condition on publish
1 parent 9ed4142 commit aa09307

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- uses: actions/setup-node@v2
3030
with:
3131
node-version: '14'
32-
cache: 'npm'
32+
cache: 'yarn'
3333

3434
- name: Config and Build
3535
run: |
@@ -44,7 +44,7 @@ jobs:
4444
run: npm publish --tag beta --dry-run
4545

4646
create-github-release:
47-
if: github.event.inputs.workspace == '@segment/analytics-react-native'
47+
if: github.event.inputs.workspace == '@segment/analytics-react-native' || github.ref == '@segment/analytics-react-native'
4848
name: Create GitHub Release
4949
permissions:
5050
contents: write

0 commit comments

Comments
 (0)