Skip to content

Commit 421796c

Browse files
committed
Adjust how version number is retrieved in CircleCI build
1 parent 8bda8b9 commit 421796c

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

circle.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,8 @@ test:
3434
- yarn run build-dist
3535
- yarn run build-deb
3636
# Test that the standalone .js build works as expected
37-
- >
38-
version=`./dist/bin/yarn --version`
39-
./artifacts/yarn-$version.js --version
40-
./artifacts/yarn-legacy-$version.js --version
37+
- ./artifacts/yarn-`./dist/bin/yarn --version`.js --version
38+
- ./artifacts/yarn-legacy-`./dist/bin/yarn --version`.js --version
4139

4240
# Test that installing as root works and that it also works
4341
# behind a user namespace which Circle CI tests are run under

scripts/build-dist.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ mkdir dist{,/bin,/lib}
2424
# Workaround for https://github.com/yarnpkg/yarn/issues/2591
2525
eval $system_yarn run build
2626
eval $system_yarn run build-bundle
27+
chmod +x artifacts/*.js
2728

2829
cp package.json dist/
2930
cp LICENSE dist/

0 commit comments

Comments
 (0)