Skip to content

Commit 88af41c

Browse files
committed
fix yml
1 parent ebb8dfc commit 88af41c

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,7 @@ jobs:
4040
- name: Prepare alpha version
4141
if: github.event_name == 'push'
4242
run: |
43-
ALPHA_VERSION=$(node -p "(() => {
44-
const version = require('./package.json').version;
45-
const [core] = version.split('-');
46-
return `${core}-alpha.${process.env.GITHUB_RUN_NUMBER}.${process.env.GITHUB_RUN_ATTEMPT}`;
47-
})()")
43+
ALPHA_VERSION=$(node -e 'const version = require("./package.json").version; const [core] = version.split("-"); const commit = (process.env.GITHUB_SHA || "").slice(0, 7); process.stdout.write(`${core}-alpha.${commit}`)')
4844
npm version "$ALPHA_VERSION" --no-git-tag-version
4945
5046
- name: Publish alpha

0 commit comments

Comments
 (0)