Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
zap

GitHub Action

setup-sst-v3

v0.0.63

setup-sst-v3

zap

setup-sst-v3

Setup SST with caching enabled

Installation

Copy and paste the following snippet into your .yml file.

              

- name: setup-sst-v3

uses: brunocleite/[email protected]

Learn more about this action in brunocleite/setup-sst

Choose a version

SST v3 GitHub Actions setup

GitHub Super-Linter CI Check dist/ CodeQL Coverage

This GitHub Action will prepare your SST v3 application by installing the providers.

It automatically caches the providers if SST version in package-lock.json and sst.config.ts files have not changed.
It is assuming that your providers are listed in sst.config.ts and not referenced to another file.

Inputs

  • Optional: sst-folder - the SST folder path. sst.config.ts should be here. package-lock.json should be here on a parent folder of it (in case of using npm workspaces).
    Defaults to ./
  • Optional: platform-only - Only caches the SST platform files on '.sst/platform'. Useful for linting runs that will not deploy. Defaults to false
  • Sample with defaults:
- name: Setup SST
  id: setup-sst
  uses: brunocleite/setup-sst-v3@v1

Sample specifying a different SST folder other than root and platform-only:

- name: Setup SST
  id: setup-sst
  uses: brunocleite/setup-sst-v3@v1
  with:
    sst-folder: 'sst'
    platform-only: true

Cached folders

  • <sst-folder>/.sst/platform - everytime and platform-only
  • <home-folder>/.config/sst/plugins - everytime
  • <home-folder>/.config/sst/bin - everytime