devops: introduce manual @next NPM publishing (#6881)

This commit is contained in:
Andrey Lushnikov 2021-06-03 14:50:40 -07:00 committed by GitHub
parent e41979a551
commit b19b2dc3ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,7 @@
name: "devrelease:npm"
on:
workflow_dispatch:
schedule:
- cron: "10 0 * * *"
push:
@ -22,9 +23,9 @@ jobs:
- run: npm ci
- run: npm run build
- run: node utils/build/update_canary_version.js --today-date
if: contains(github.ref, 'master')
if: contains(github.ref, 'master') && github.event_name != 'workflow_dispatch'
- run: node utils/build/update_canary_version.js --commit-timestamp
if: contains(github.ref, 'release')
if: contains(github.ref, 'release') || github.event_name == 'workflow_dispatch'
- run: utils/publish_all_packages.sh --tip-of-tree
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}