We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ebb8dfc commit 88af41cCopy full SHA for 88af41c
1 file changed
.github/workflows/release.yml
@@ -40,11 +40,7 @@ jobs:
40
- name: Prepare alpha version
41
if: github.event_name == 'push'
42
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
- })()")
+ 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}`)')
48
npm version "$ALPHA_VERSION" --no-git-tag-version
49
50
- name: Publish alpha
0 commit comments