Publish nightly #124
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish nightly | |
on: | |
schedule: | |
- cron: '0 5 * * *' | |
workflow_dispatch: {} | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: 14.x | |
registry-url: https://registry.npmjs.org/ | |
- run: yarn --frozen-lockfile | |
# Build report bundles needed for publishing. | |
- run: yarn build-report | |
- name: Publish to npm | |
run: | | |
npm whoami | |
bash $GITHUB_WORKSPACE/.github/scripts/bump-nightly-version.sh | |
npm publish --tag next | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} | |
CI: true |