snapshot.yml 670 B

12345678910111213141516171819202122232425262728293031323334
  1. name: snapshot
  2. on:
  3. push:
  4. branches:
  5. - dev
  6. - opentui
  7. concurrency: ${{ github.workflow }}-${{ github.ref }}
  8. jobs:
  9. publish:
  10. runs-on: ubuntu-latest
  11. steps:
  12. - uses: actions/checkout@v3
  13. with:
  14. fetch-depth: 0
  15. - run: git fetch --force --tags
  16. - uses: actions/setup-go@v5
  17. with:
  18. go-version: ">=1.24.0"
  19. cache: true
  20. cache-dependency-path: go.sum
  21. - uses: ./.github/actions/setup-bun
  22. - name: Publish
  23. run: |
  24. ./script/publish.ts
  25. env:
  26. GITHUB_TOKEN: ${{ secrets.SST_GITHUB_TOKEN }}
  27. NPM_CONFIG_TOKEN: ${{ secrets.NPM_TOKEN }}