File tree Expand file tree Collapse file tree 2 files changed +9
-13
lines changed Expand file tree Collapse file tree 2 files changed +9
-13
lines changed Original file line number Diff line number Diff line change @@ -18,12 +18,15 @@ jobs:
18
18
- uses : actions/setup-node@v3
19
19
with :
20
20
node-version : 18
21
- - run : yarn
21
+ - run : |
22
+ corepack enable; yarn
23
+ env:
24
+ COREPACK_ENABLE_DOWNLOAD_PROMPT: 0
22
25
- run : |
23
26
# Get tag name from event
24
27
tag_name="${{ github.event.release.tag_name }}"
25
28
26
- cmd="yarn publish"
29
+ cmd="yarn npm publish"
27
30
if [ "${{ github.event.release.prerelease }}" == "true" ]; then
28
31
cmd+=" --tag=beta"
29
32
else
Original file line number Diff line number Diff line change @@ -28,19 +28,12 @@ jobs:
28
28
app-id : ${{ secrets.PIPELINE_GITHUB_APP_ID }}
29
29
private-key : ${{ secrets.PIPELINE_GITHUB_APP_PRIVATE_KEY }}
30
30
31
- - name : Checkout ${{ github.base_ref }}
31
+ - name : Checkout ${{ github.event.pull_request.base.ref }}
32
32
uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
33
33
with :
34
- fetch-depth : 1
35
34
token : ${{ steps.get_token.outputs.token }}
36
35
ref : ${{ github.event.pull_request.base.ref }}
37
-
38
- - name : Checkout ${{ github.head_ref }}
39
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
40
- with :
41
- fetch-depth : 1
42
- token : ${{ steps.get_token.outputs.token }}
43
- ref : ${{ github.event.pull_request.head.ref }}
36
+ fetch-depth : 0
44
37
45
38
- name : Release packages
46
39
env :
49
42
GH_TOKEN : ${{ steps.get_token.outputs.token }}
50
43
shell : bash
51
44
run : |
52
- CHANGED_PACKAGE_JSON_FILES=$(git diff --name-only $BASE_SHA...$HEAD_SHA \
45
+ CHANGED_PACKAGE_JSON_FILES=$(git diff --diff-filter=MACR -- name-only $BASE_SHA...$HEAD_SHA \
53
46
| grep -E 'package\.json$' \
54
47
| xargs dirname \
55
48
| sort \
95
88
"body": "See $package/CHANGELOG.md for details",
96
89
"prerelease": $is_prerelease
97
90
}
98
- EOF
91
+ EOF
99
92
done
You can’t perform that action at this time.
0 commit comments