Skip to content

Commit

Permalink
chore: work in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
cheton committed Apr 20, 2021
1 parent bbeee26 commit 257b87c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ environment:
matrix:
- nodejs_version: "10"
global:
CI_BUILD_NUMBER: $(appveyor_build_number)
CI_BUILD_NUMBER: $(APPVEYOR_BUILD_NUMBER)
CI_BRANCH: $(APPVEYOR_REPO_BRANCH)
CI_COMMIT: $(APPVEYOR_REPO_COMMIT)
CI_TAG: $(APPVEYOR_REPO_TAG_NAME)
GH_TOKEN:
secure: 14dS/9loZ4uMoKGOHGkagaYp5oS30HSIQcPB0FEa7aTEfpb2VJQiUms82hv8nWxY
GITHUB_TOKEN:
Expand Down Expand Up @@ -49,11 +52,11 @@ for:
- yarn

before_build:
- export CI_BRANCH=$APPVEYOR_REPO_BRANCH
- export CI_TAG=$APPVEYOR_REPO_TAG_NAME
- export GIT_COMMIT_LOG=`git log -1 --format='%ci %H %s'`
- sh: |
echo "$CI_BUILD_NUMBER"
echo "$CI_BRANCH"
echo "$CI_COMMIT"
echo "$CI_TAG"
echo "$GIT_COMMIT_LOG"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
},
"preferGlobal": true,
"scripts": {
"prebuild-latest": "npm run package-sync && bash -c \"cd src; npm version ${npm_package_version}-$(TZ=UTC date +'%Y%m%dT%H%M%SZ')\" && bash scripts/prebuild-prod.sh",
"prebuild-latest": "npm run package-sync && bash -c \"cd src; npm version ${npm_package_version}-$(TZ=UTC date +'%Y%m%d')-${CI_COMMIT:-latest}\" && bash scripts/prebuild-prod.sh",
"prebuild-dev": "npm run package-sync && bash scripts/prebuild-dev.sh",
"prebuild-prod": "npm run package-sync && bash scripts/prebuild-prod.sh",
"build": "npm run build-prod",
Expand Down

0 comments on commit 257b87c

Please sign in to comment.