nightly.yaml 656 B

12345678910111213141516171819202122232425262728293031
  1. name: Publish Nightly
  2. on:
  3. schedule:
  4. - cron: '0 8 * * *'
  5. workflow_dispatch: {}
  6. repository_dispatch:
  7. types: publish-nightly
  8. jobs:
  9. build:
  10. runs-on: ubuntu-latest
  11. strategy:
  12. matrix:
  13. node-version: [12.x]
  14. steps:
  15. - uses: actions/checkout@v2
  16. - name: Use Node.js ${{ matrix.node-version }}
  17. uses: actions/setup-node@v1
  18. with:
  19. registry-url: https://registry.npmjs.org/
  20. - name: Setup and publish nightly
  21. run: |
  22. npm ci
  23. npm run release
  24. npm run prepare:nightly
  25. npm publish
  26. env:
  27. NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}