In San Francisco, KTVU(actually in Oakland) did a 30th anniversary special in 1988, hosted by comedian and local native Ronnie Schell(best known as Duke from 'Gomer Pyle', and as a TV and radio commercial actor). It was a two-hour show, with plenty of flashbacks to the station's local programming, such as 'Roller Derby', numerous kids' shows (search for 'Charley and Humphrey', 'Bits and Pieces' or 'Captain Cosmic' on YouTube), a nighttime variety show hosted by legendary KSFO disc jockey Don Sherwood, and, of course, KTVU's 'Ten O'Clock News', which claims to have been the first newscast in that time slot anywhere outside the Midwest. The station had an ad campaign for its 50th anniversary, but confined most of that observance to its web site.
KGO marked 40 years on the air in 1989, with a two-hour special of its own, featuring, among othrs, Jack Lalanne, whose first TV show was on channel 7, before he went national. The station also invited a number of its previous news anchors for a retrospective that filled the last half hour of the 6 o'clock newscast on May 5, the actual anniversary date. Roger Grimsby, KGO's anchor in the mid-60s, made an appearence, just days after his final newscast for WABC in New York. His sucessor,Van Amburg, however, did not appear, or even send a congratulatory message, still bitter over being fired in '86.
Don't recall KRON or KPIX doing anything for their anniversaries, though channel 5 occasionally mentioned their early days with new retrospectives, especially when longtime anchor Dave McElhatton retired in 2000.