|
24 | 24 | required: true
|
25 | 25 |
|
26 | 26 | jobs:
|
| 27 | + has-secrets: |
| 28 | + name: Check for secrets |
| 29 | + runs-on: ubuntu-latest |
| 30 | + outputs: |
| 31 | + has-secrets: ${{ steps.check-secrets.outputs.has-secrets }} |
| 32 | + steps: |
| 33 | + - name: Check for secrets |
| 34 | + id: check-secrets |
| 35 | + env: |
| 36 | + HAS_SECRETS: ${{ |
| 37 | + secrets.NPM_TOKEN_ANALYTICS != '' && |
| 38 | + secrets.NPM_TOKEN_ANALYTICS_COMPAT != '' && |
| 39 | + secrets.NPM_TOKEN_ANALYTICS_INTEROP_TYPES != '' && |
| 40 | + secrets.NPM_TOKEN_ANALYTICS_TYPES != '' && |
| 41 | + secrets.NPM_TOKEN_API_DOCUMENTER != '' && |
| 42 | + secrets.NPM_TOKEN_APP != '' && |
| 43 | + secrets.NPM_TOKEN_APP_CHECK != '' && |
| 44 | + secrets.NPM_TOKEN_APP_CHECK_COMPAT != '' && |
| 45 | + secrets.NPM_TOKEN_APP_CHECK_INTEROP_TYPES != '' && |
| 46 | + secrets.NPM_TOKEN_APP_CHECK_TYPES != '' && |
| 47 | + secrets.NPM_TOKEN_APP_COMPAT != '' && |
| 48 | + secrets.NPM_TOKEN_APP_TYPES != '' && |
| 49 | + secrets.NPM_TOKEN_AUTH != '' && |
| 50 | + secrets.NPM_TOKEN_AUTH_COMPAT != '' && |
| 51 | + secrets.NPM_TOKEN_AUTH_INTEROP_TYPES != '' && |
| 52 | + secrets.NPM_TOKEN_AUTH_TYPES != '' && |
| 53 | + secrets.NPM_TOKEN_COMPONENT != '' && |
| 54 | + secrets.NPM_TOKEN_DATABASE != '' && |
| 55 | + secrets.NPM_TOKEN_DATABASE_COMPAT != '' && |
| 56 | + secrets.NPM_TOKEN_DATABASE_TYPES != '' && |
| 57 | + secrets.NPM_TOKEN_FIREBASE != '' && |
| 58 | + secrets.NPM_TOKEN_FIRESTORE != '' && |
| 59 | + secrets.NPM_TOKEN_FIRESTORE_COMPAT != '' && |
| 60 | + secrets.NPM_TOKEN_FIRESTORE_TYPES != '' && |
| 61 | + secrets.NPM_TOKEN_FUNCTIONS != '' && |
| 62 | + secrets.NPM_TOKEN_FUNCTIONS_COMPAT != '' && |
| 63 | + secrets.NPM_TOKEN_FUNCTIONS_TYPES != '' && |
| 64 | + secrets.NPM_TOKEN_INSTALLATIONS != '' && |
| 65 | + secrets.NPM_TOKEN_INSTALLATIONS_COMPAT != '' && |
| 66 | + secrets.NPM_TOKEN_INSTALLATIONS_TYPES != '' && |
| 67 | + secrets.NPM_TOKEN_LOGGER != '' && |
| 68 | + secrets.NPM_TOKEN_MESSAGING != '' && |
| 69 | + secrets.NPM_TOKEN_MESSAGING_COMPAT != '' && |
| 70 | + secrets.NPM_TOKEN_MESSAGING_INTEROP_TYPES != '' && |
| 71 | + secrets.NPM_TOKEN_MESSAGING_TYPES != '' && |
| 72 | + secrets.NPM_TOKEN_PERFORMANCE != '' && |
| 73 | + secrets.NPM_TOKEN_PERFORMANCE_COMPAT != '' && |
| 74 | + secrets.NPM_TOKEN_PERFORMANCE_TYPES != '' && |
| 75 | + secrets.NPM_TOKEN_POLYFILL != '' && |
| 76 | + secrets.NPM_TOKEN_REMOTE_CONFIG != '' && |
| 77 | + secrets.NPM_TOKEN_REMOTE_CONFIG_COMPAT != '' && |
| 78 | + secrets.NPM_TOKEN_REMOTE_CONFIG_TYPES != '' && |
| 79 | + secrets.NPM_TOKEN_RULES_UNIT_TESTING != '' && |
| 80 | + secrets.NPM_TOKEN_STORAGE != '' && |
| 81 | + secrets.NPM_TOKEN_STORAGE_COMPAT != '' && |
| 82 | + secrets.NPM_TOKEN_STORAGE_TYPES != '' && |
| 83 | + secrets.NPM_TOKEN_TESTING != '' && |
| 84 | + secrets.NPM_TOKEN_UTIL != '' && |
| 85 | + secrets.NPM_TOKEN_VERTEXAI != '' && |
| 86 | + secrets.NPM_TOKEN_VERTEXAI_PREVIEW != '' && |
| 87 | + secrets.NPM_TOKEN_WEBCHANNEL_WRAPPER != '' && |
| 88 | + secrets.OSS_BOT_GITHUB_TOKEN != '' && |
| 89 | + secrets.RELEASE_TRACKER_URL != '' && |
| 90 | + 1 || |
| 91 | + '' |
| 92 | + }} |
| 93 | + if: env.HAS_SECRETS |
| 94 | + run: | |
| 95 | + echo "has-secrets=1" >> $GITHUB_OUTPUTS |
| 96 | +
|
27 | 97 | deploy:
|
| 98 | + needs: has-secrets |
28 | 99 | name: Production Release
|
| 100 | + if: needs.has-secrets.outputs.has-secrets |
29 | 101 | runs-on: ubuntu-latest
|
30 | 102 | # Allow GITHUB_TOKEN to have write permissions
|
31 | 103 | permissions:
|
|
0 commit comments