Using the Serverless CLI tool, you can package your project without deploying it to the Google Cloud. This is best used with CI / CD workflows to ensure consistent deployable artifacts.
Running the following command will build and save all of the deployment artifacts in the service's .serverless directory:
serverless package