Skip to content

Commit 1f4e16d

Browse files
committed
Update release tracker part
1 parent cd93f3f commit 1f4e16d

File tree

2 files changed

+5
-30
lines changed

2 files changed

+5
-30
lines changed

.github/workflows/release-prod.yml

Lines changed: 5 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -84,37 +84,20 @@ jobs:
8484
CI: true
8585
- name: Get release version
8686
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
8988
run: |
9089
VERSION_SCRIPT="const pkg = require('./packages/firebase/package.json'); console.log(pkg.version);"
9190
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
9693
run: |
97-
echo "Staging release ${{ steps.get-version.outputs.STAGING_VERSION }}"
9894
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
11095
- name: Log to release tracker
11196
# Sends release information to cloud functions endpoint of release tracker.
11297
run: |
11398
DATE=$(date +'%m/%d/%Y')
11499
BASE_VERSION=${{ steps.get-version.outputs.BASE_VERSION }}
115-
STAGING_VERSION=${{ steps.get-version.outputs.STAGING_VERSION }}
116-
OPERATOR=${{ github.actor }}
117100
RELEASE_TRACKER_URL=${{ secrets.RELEASE_TRACKER_URL }}
118101
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

scripts/release/utils/tmp.ts

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)