@@ -84,37 +84,20 @@ jobs:
84
84
CI : true
85
85
- name : Get release version
86
86
id : get-version
87
- # STAGING_VERSION = version with staging hash, e.g. 1.2.3-20430523
88
- # BASE_VERSION = version without staging hash, e.g. 1.2.3
87
+ # In production, there is only one version number
89
88
run : |
90
89
VERSION_SCRIPT="const pkg = require('./packages/firebase/package.json'); console.log(pkg.version);"
91
90
VERSION=`node -e "${VERSION_SCRIPT}"`
92
- echo "::set-output name=STAGING_VERSION::$VERSION"
93
- BASE_VERSION=$(echo $VERSION | cut -d "-" -f 1)
94
- echo "::set-output name=BASE_VERSION::$BASE_VERSION"
95
- - name : Echo versions in shell
91
+ echo "::set-output name=BASE_VERSION::$VERSION"
92
+ - name : Echo version in shell
96
93
run : |
97
- echo "Staging release ${{ steps.get-version.outputs.STAGING_VERSION }}"
98
94
echo "Base version: ${{ steps.get-version.outputs.BASE_VERSION }}"
99
- - name : Launch E2E tests workflow
100
- # Trigger e2e-test.yml
101
- run : |
102
- OSS_BOT_GITHUB_TOKEN=${{ secrets.OSS_BOT_GITHUB_TOKEN }}
103
- VERSION_OR_TAG=${{ steps.get-version.outputs.STAGING_VERSION }}
104
- curl -X POST \
105
- -H "Content-Type:application/json" \
106
- -H "Accept:application/vnd.github.v3+json" \
107
- -H "Authorization:Bearer $OSS_BOT_GITHUB_TOKEN" \
108
- -d "{\"event_type\":\"staging-tests\", \"client_payload\":{\"versionOrTag\":\"$VERSION_OR_TAG\"}}" \
109
- https://api.github.com/repos/firebase/firebase-js-sdk/dispatches
110
95
- name : Log to release tracker
111
96
# Sends release information to cloud functions endpoint of release tracker.
112
97
run : |
113
98
DATE=$(date +'%m/%d/%Y')
114
99
BASE_VERSION=${{ steps.get-version.outputs.BASE_VERSION }}
115
- STAGING_VERSION=${{ steps.get-version.outputs.STAGING_VERSION }}
116
- OPERATOR=${{ github.actor }}
117
100
RELEASE_TRACKER_URL=${{ secrets.RELEASE_TRACKER_URL }}
118
101
curl -X POST -H "Content-Type:application/json" \
119
- -d "{\"version\":\"$BASE_VERSION\",\"tag\":\"$STAGING_VERSION\",\" date\":\"$DATE\",\"operator\":\"$OPERATOR \"}" \
120
- $RELEASE_TRACKER_URL/logStaging
102
+ -d "{\"version\":\"$BASE_VERSION\",\"date\":\"$DATE\"}" \
103
+ $RELEASE_TRACKER_URL/logProduction
0 commit comments