Dry-roast the pine nuts in a dry skillet over medium-low heat, stirring constantly, until they turn golden brown, about 2 to 3 minutes. Remove from the skillet and set aside.
Heat the oil in a wok over high heat until hot, and stir-fry the onions and green onions to release the aromas, about 30 seconds.