rollingversions.yml 957 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. name: Release
  2. on:
  3. repository_dispatch:
  4. types: [rollingversions_publish_approved]
  5. jobs:
  6. test:
  7. runs-on: ubuntu-latest
  8. strategy:
  9. matrix:
  10. node-version: [10.x, 12.x, 14.x]
  11. steps:
  12. - uses: actions/checkout@v2
  13. - name: Use Node.js ${{ matrix.node-version }}
  14. uses: actions/setup-node@v1
  15. with:
  16. node-version: ${{ matrix.node-version }}
  17. - run: yarn install --frozen-lockfile
  18. - run: yarn prettier:check
  19. - run: yarn test
  20. publish:
  21. runs-on: ubuntu-latest
  22. needs: test
  23. steps:
  24. - uses: actions/checkout@v2
  25. - uses: actions/setup-node@v1
  26. with:
  27. node-version: 12.x
  28. registry-url: 'https://registry.npmjs.org'
  29. - run: yarn install --frozen-lockfile
  30. - run: yarn build
  31. - run: npx rollingversions publish
  32. env:
  33. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  34. NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}