release.yml 824 B

123456789101112131415161718192021222324252627282930313233343536
  1. name: Release
  2. on:
  3. push:
  4. tags:
  5. - 'v*'
  6. jobs:
  7. release:
  8. runs-on: ubuntu-latest
  9. steps:
  10. - uses: actions/checkout@v2
  11. with:
  12. fetch-depth: 0
  13. - name: use Node.js 16
  14. uses: actions/setup-node@v2.1.2
  15. with:
  16. node-version: '16.x'
  17. - name: Get yarn cache
  18. id: yarn-cache
  19. run: echo "::set-output name=dir::$(yarn cache dir)"
  20. - name: Cache dependencies
  21. uses: actions/cache@v2
  22. with:
  23. path: ${{ steps.yarn-cache.outputs.dir }}
  24. key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
  25. restore-keys: |
  26. ${{ runner.os }}-yarn-
  27. - run: yarn install
  28. - run: npm run github-release
  29. env:
  30. CONVENTIONAL_GITHUB_RELEASER_TOKEN: ${{secrets.ACTIONS_DEPLOY_KEY}}