Skip to content

Commit 04f5151

Browse files
committed
fix: use beta-release directly from file
1 parent b75b7e6 commit 04f5151

2 files changed

Lines changed: 3 additions & 9 deletions

File tree

.github/workflows/beta-release.yaml

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

33
on:
4+
pull_request:
5+
types: [opened, synchronize, reopened, ready_for_review]
46
workflow_call:
57

68
jobs:
79
beta_release:
10+
if: github.event.pull_request.draft == false
811
runs-on: ubuntu-latest
912
permissions:
1013
contents: read
@@ -37,9 +40,6 @@ jobs:
3740

3841
- name: Release a new beta version
3942
run: npm publish --tag beta --provenance --access public
40-
env:
41-
NODE_AUTH_TOKEN: ''
42-
NPM_TOKEN: ''
4343

4444
- uses: actions/github-script@v6
4545
with:

.github/workflows/pull-request.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,6 @@ jobs:
1616
if: 'github.event.pull_request.draft == false'
1717
uses: ./.github/workflows/bundlesize.yaml
1818

19-
beta_release:
20-
permissions:
21-
contents: read
22-
id-token: write
23-
uses: ./.github/workflows/beta-release.yaml
24-
2519
fail_if_pull_request_is_draft:
2620
if: github.event.pull_request.draft == true
2721
runs-on: ubuntu-18.04

0 commit comments

Comments
 (0)