77 description : " The package name to publish"
88 required : true
99 default : " @firebaseextensions/fs-bq-schema-views"
10+ permissions :
11+ id-token : write
1012jobs :
1113 publish_if_newer_version :
1214 runs-on : ubuntu-latest
1315 name : publish_if_newer_version
1416 steps :
15- - uses : actions/checkout@v3
17+ - uses : actions/checkout@v4
1618 - name : Setup node
17- uses : actions/setup-node@v3
19+ uses : actions/setup-node@v4
1820 with :
1921 node-version : 20
2022 - name : NPM install
@@ -23,26 +25,20 @@ jobs:
2325 if :
2426 ${{ github.event.inputs.package_name ==
2527 ' @firebaseextensions/fs-bq-schema-views' }}
26- env :
27- NPM_TOKEN : ${{ secrets.NPM_TOKEN_BQ_SCHEMA_VIEWS }}
2828 run : |
2929 cd firestore-bigquery-export/scripts/gen-schema-view
3030 ${{ github.workspace }}/.github/workflows/scripts/npm_publish.sh
3131 - name : Publish BigQuery Import Collection
3232 if :
3333 ${{ github.event.inputs.package_name ==
3434 ' @firebaseextensions/fs-bq-import-collection' }}
35- env :
36- NPM_TOKEN : ${{ secrets.NPM_TOKEN_BQ_IMPORT_COLLECTION }}
3735 run : |
3836 cd firestore-bigquery-export/scripts/import
3937 ${{ github.workspace }}/.github/workflows/scripts/npm_publish.sh
4038 - name : Publish BigQuery Change Tracker
4139 if :
4240 ${{ github.event.inputs.package_name ==
4341 ' @firebaseextensions/firestore-bigquery-change-tracker' }}
44- env :
45- NPM_TOKEN : ${{ secrets.NPM_TOKEN_BQ_CHANGE_TRACKER }}
4642 run : |
4743 cd firestore-bigquery-export/firestore-bigquery-change-tracker
4844 ${{ github.workspace }}/.github/workflows/scripts/npm_publish.sh
0 commit comments