Skip to content

Commit 6d0138b

Browse files
committed
Revert
1 parent 34e342d commit 6d0138b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/scripts/before-beta-release.cjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,6 @@ function getNextVersion(version) {
2727
const prereleaseNumbers = versions
2828
.filter((v) => (v.startsWith(VERSION) && v.includes('-')))
2929
.map((v) => Number(v.match(/\.(\d+)$/)[1]));
30-
return `${version}`;
30+
const lastPrereleaseNumber = Math.max(-1, ...prereleaseNumbers);
31+
return `${version}-beta.${lastPrereleaseNumber + 1}`;
3132
}

.github/workflows/check.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ on:
99
push:
1010
branches:
1111
- master
12-
- fix/ci
1312
tags-ignore:
1413
- "**" # Ignore all tags to prevent duplicate builds when tags are pushed.
1514

.github/workflows/pre_release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ jobs:
101101
- name: Build module
102102
run: npm run build
103103
- name: Publish to NPM
104-
run: npm publish
104+
run: npm publish --tag beta
105105

106106
env:
107107
NODE_AUTH_TOKEN: ${{ secrets.APIFY_SERVICE_ACCOUNT_NPM_TOKEN }}

0 commit comments

Comments
 (0)