Skip to content

Commit fdf3b6d

Browse files
committed
fix: update pull-request based on the npm docs
1 parent 038fa3a commit fdf3b6d

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

.github/workflows/beta-release.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,22 @@ on:
66

77
jobs:
88
beta_release:
9-
if: github.event.pull_request.draft == false
9+
if: github.event.pull_request.draft == false && github.event.pull_request.head.repo.fork == false
1010
runs-on: ubuntu-latest
11+
concurrency:
12+
group: beta-release-${{ github.event.pull_request.number }}
13+
cancel-in-progress: true
1114
permissions:
1215
contents: read
1316
id-token: write
17+
issues: write
1418
steps:
1519
- uses: actions/checkout@v4
1620
with:
1721
ref: ${{ github.head_ref }}
1822
- uses: actions/setup-node@v4
1923
with:
20-
node-version: '20.x'
24+
node-version: '22.14.0'
2125
registry-url: 'https://registry.npmjs.org'
2226
cache: 'yarn'
2327

@@ -38,7 +42,7 @@ jobs:
3842
GITHUB_PR_NUMBER: ${{ github.event.pull_request.number }}
3943

4044
- name: Release a new beta version
41-
run: npm publish --tag beta --provenance --access public
45+
run: npm publish --tag beta --access public
4246

4347
- uses: actions/github-script@v6
4448
with:

0 commit comments

Comments
 (0)