Steroidal glycoalkaloids (SGAs), which are widely produced by potato, even in other Solanaceae plants, are a class of potentially toxic compounds, but are beneficial to host resistance. However, changes of the other metabolic process along with SGA accumulation are still poorly understood and researched. Based on RNA sequencing (RNA-seq) and bioinformatics analysis, the global gene expression profiles of potato variety Helan 15 (Favorita) was investigated at four-time points during light exposure. The data was further verified by using quantitative Real-time PCR (qRT-PCR). When compared to the control group, 1288, 1592, 1737, and 1870 differentially expressed genes (DEGs) were detected at 6 h, 24 h, 48 h, and 8 d, respectively. The results of both RNAseq and qRT-PCR showed that SGA biosynthetic genes were up-regulated in the potato tuber under light exposure. Functional enrichment analysis revealed that genes related to PS light reaction and Protein degradation were significantly enriched in most time points of light exposure. Additionally, enriched Bins included Receptor kinases, Secondary metabolic process in flavonoids, Abiotic stress, and Biotic stress in the early stage of light exposure, but PS Calvin cycle, RNA regulation of transcription, and UDP glucosyl and glucoronyl transferases in the later stage. Most of the DEGs involved in PS light reaction and Abiotic stress were up-regulated at all four time points, whereas DEGs that participated in biotic stresses were mainly up-regulated at the later stage (48 h and 8 d). Cis-element prediction and co-expression assay were used to confirm the expressional correlation between genes that are responsible for SGA biosynthesis and disease resistance. In conclusion, the expressions of genes involved in PS light reaction, Abiotic stress, and Biotic stress were obviously aroused during the accumulation of SGAs induced by light exposure. Moreover, an increased defense response might contribute to the potato resistance to the infection by phytopathogenic microorganisms.