diff --git a/.github/workflows/release-tweet.yml b/.github/workflows/release-tweet.yml
index 708132d93d8..096171880fb 100644
--- a/.github/workflows/release-tweet.yml
+++ b/.github/workflows/release-tweet.yml
@@ -18,13 +18,19 @@ jobs:
name: Send Release Tweet
runs-on: ubuntu-latest
steps:
+ - name: Checkout Repo
+ uses: actions/checkout@master
+ - name: Setup Node.js 14.x
+ uses: actions/setup-node@master
+ with:
+ node-version: 14.x
- name: Poll release notes page on devsite
run: node scripts/ci/poll_release_notes.js
env:
VERSION: ${{ github.event.inputs.version }}
FORCE_PUBLISH: ${{ github.event.inputs.force }}
- name: Post to Twitter
- uses: firebase/firebase-admin-node/.github/actions/send-tweet
+ uses: firebase/firebase-admin-node/.github/actions/send-tweet@master
with:
status: >
v${{github.event.inputs.version}} of @Firebase JavaScript client for Web / Node.js is available.
diff --git a/scripts/ci/poll_release_notes.js b/scripts/ci/poll_release_notes.js
index ed972ac0729..9a5ea4f2105 100644
--- a/scripts/ci/poll_release_notes.js
+++ b/scripts/ci/poll_release_notes.js
@@ -52,7 +52,8 @@ async function pollReleaseNotes() {
for (let i = 0; i < MAX_ATTEMPTS; i++) {
siteContent = await getData();
const matches = siteContent.match(//g);
- if (matches[0] === version) {
+ if (matches[0] === ``) {
+ console.log(`Found ${version} in release notes.`);
return;
}
if (matches.includes(``) && !process.env.FORCE) {