snapshot.yml 686 B

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