As per this official GCP document on Configure secrets for services :
“Any configuration change leads to the creation of a new revision. Subsequent revisions will also automatically get this configuration setting unless you make explicit updates to change it.
You can make a secret accessible to your service using the Google Cloud console
Verify the secret version you're trying to access exists:
gcloud secrets versions list --secret="my-secret
For accessing secrets in your code as environment variables, refer to the tutorial on end user authentication, particularly the section Handling sensitive configuration with Secret Manager.
Also refer to this tutorial on Using Environment Variables in Node.js for App Configuration and Secrets by Ryan Blunden to know more information about how to use environment variables in node.js for app configurations and services.