snapshot.yml 726 B

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